neofetch: Fix windows issue. Closes #1297

parent 3dd3f7f8
......@@ -2784,10 +2784,10 @@ get_resolution() {
"Windows")
IFS=$'\n' read -d "" -ra sw \
< <(wmic path Win32_VideoController get CurrentHorizontalResolution)
<<< "$(wmic path Win32_VideoController get CurrentHorizontalResolution)"
IFS=$'\n' read -d "" -ra sh \
< <(wmic path Win32_VideoController get CurrentVerticalResolution)
<<< "$(wmic path Win32_VideoController get CurrentVerticalResolution)"
sw=("${sw[@]//CurrentHorizontalResolution}")
sh=("${sh[@]//CurrentHorizontalResolution}")
......
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