neofetch: Fix windows issue. Closes #1297

This commit is contained in:
Dylan Araps 2020-01-23 19:17:23 +02:00
parent 492af341b8
commit bf0eef3f07
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 2 additions and 1 deletions

View File

@ -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%,}