mirror of
https://github.com/KittyKatt/screenFetch.git
synced 2026-04-24 03:00:16 -04:00
Missed a set of parentheses in the pushed version
I tested the code under cygwin with one monitor, and found that even that produced wrong output (and a test with some faked monitors confirmed the output given in the issue). The error was me omitting the parentheses that signify an array in bash. With them there it should work as intended.
This commit is contained in:
@@ -1069,8 +1069,8 @@ detectres () {
|
||||
xResolution=$(echo $xResolution | tr "\\n" "," | sed 's/\(.*\),/\1/')
|
||||
fi
|
||||
elif [[ "${distro}" == "Cygwin" ]]; then
|
||||
width=$(wmic desktopmonitor get screenwidth | grep -vE '[a-z]+' | tr '\r\n' ' ')
|
||||
height=$(wmic desktopmonitor get screenheight | grep -vE '[a-z]+' | tr '\r\n' ' ')
|
||||
width=($(wmic desktopmonitor get screenwidth | grep -vE '[a-z]+' | tr '\r\n' ' '))
|
||||
height=($(wmic desktopmonitor get screenheight | grep -vE '[a-z]+' | tr '\r\n' ' '))
|
||||
|
||||
xResolution=""
|
||||
len=${#width[@]}
|
||||
|
||||
Reference in New Issue
Block a user