mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-23 20:12:31 +00:00
neofetch: Fix windows issue. Closes #1297
This commit is contained in:
1
neofetch
1
neofetch
@@ -2793,6 +2793,7 @@ get_resolution() {
|
|||||||
sh=("${sh[@]//*CurrentVerticalResolution*}")
|
sh=("${sh[@]//*CurrentVerticalResolution*}")
|
||||||
|
|
||||||
for ((mn = 0; mn < ${#sw[@]}; mn++)) {
|
for ((mn = 0; mn < ${#sw[@]}; mn++)) {
|
||||||
|
[[ ${sw[mn]//[[:space:]]} && ${sh[mn]//[[:space:]]} ]] &&
|
||||||
resolution+=${sw[mn]//[[:space:]]}x${sh[mn]//[[:space:]]},
|
resolution+=${sw[mn]//[[:space:]]}x${sh[mn]//[[:space:]]},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user