neofetch: Fix windows issue. Closes #1297
This commit is contained in:
parent
c11f149989
commit
492af341b8
1 changed files with 2 additions and 2 deletions
4
neofetch
4
neofetch
|
@ -2789,8 +2789,8 @@ get_resolution() {
|
||||||
IFS=$'\n' read -d "" -ra sh \
|
IFS=$'\n' read -d "" -ra sh \
|
||||||
<<< "$(wmic path Win32_VideoController get CurrentVerticalResolution)"
|
<<< "$(wmic path Win32_VideoController get CurrentVerticalResolution)"
|
||||||
|
|
||||||
sw=("${sw[@]//CurrentHorizontalResolution}")
|
sw=("${sw[@]//*CurrentHorizontalResolution*}")
|
||||||
sh=("${sh[@]//CurrentHorizontalResolution}")
|
sh=("${sh[@]//*CurrentVerticalResolution*}")
|
||||||
|
|
||||||
for ((mn = 0; mn < ${#sw[@]}; mn++)) {
|
for ((mn = 0; mn < ${#sw[@]}; mn++)) {
|
||||||
resolution+=${sw[mn]//[[:space:]]}x${sh[mn]//[[:space:]]},
|
resolution+=${sw[mn]//[[:space:]]}x${sh[mn]//[[:space:]]},
|
||||||
|
|
Loading…
Reference in a new issue