neofetch: Fix windows issue. Closes #1297

This commit is contained in:
Dylan Araps 2020-01-23 19:04:14 +02:00
parent 3dd3f7f8e7
commit c11f149989
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 2 additions and 2 deletions

View File

@ -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}")