neofetch: Fix windows issue. Closes #1297

parent 492af341
...@@ -2793,7 +2793,8 @@ get_resolution() { ...@@ -2793,7 +2793,8 @@ get_resolution() {
sh=("${sh[@]//*CurrentVerticalResolution*}") sh=("${sh[@]//*CurrentVerticalResolution*}")
for ((mn = 0; mn < ${#sw[@]}; mn++)) { for ((mn = 0; mn < ${#sw[@]}; mn++)) {
resolution+=${sw[mn]//[[:space:]]}x${sh[mn]//[[:space:]]}, [[ ${sw[mn]//[[:space:]]} && ${sh[mn]//[[:space:]]} ]] &&
resolution+=${sw[mn]//[[:space:]]}x${sh[mn]//[[:space:]]},
} }
resolution=${resolution%,} resolution=${resolution%,}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment