mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-03 16:51:29 +00:00
neofetch: Fix windows issue. Closes #1297
This commit is contained in:
4
neofetch
4
neofetch
@@ -2789,8 +2789,8 @@ get_resolution() {
|
||||
IFS=$'\n' read -d "" -ra sh \
|
||||
<<< "$(wmic path Win32_VideoController get CurrentVerticalResolution)"
|
||||
|
||||
sw=("${sw[@]//CurrentHorizontalResolution}")
|
||||
sh=("${sh[@]//CurrentHorizontalResolution}")
|
||||
sw=("${sw[@]//*CurrentHorizontalResolution*}")
|
||||
sh=("${sh[@]//*CurrentVerticalResolution*}")
|
||||
|
||||
for ((mn = 0; mn < ${#sw[@]}; mn++)) {
|
||||
resolution+=${sw[mn]//[[:space:]]}x${sh[mn]//[[:space:]]},
|
||||
|
Reference in New Issue
Block a user