neofetch: Fix windows issue. Closes #1297

parent c11f1499
......@@ -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:]]},
......
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