From 492af341b882c9835776875a3826556e869101da Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 23 Jan 2020 19:11:17 +0200 Subject: [PATCH] neofetch: Fix windows issue. Closes #1297 --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 9b5704fb..df9371f2 100755 --- a/neofetch +++ b/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:]]},