From 8f03e7082f523513be2e2fc58129ac14b63a97de Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 23 Jan 2020 19:30:51 +0200 Subject: [PATCH] neofetch: Fix windows issue. Closes #1297 --- neofetch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/neofetch b/neofetch index 39045f89..dd8e5e07 100755 --- a/neofetch +++ b/neofetch @@ -2789,12 +2789,12 @@ get_resolution() { IFS=$'\n' read -d "" -ra sh \ <<< "$(wmic path Win32_VideoController get CurrentVerticalResolution)" - sw=("${sw[@]//*CurrentHorizontalResolution*}") - sh=("${sh[@]//*CurrentVerticalResolution*}") + sw=("${sw[@]//CurrentHorizontalResolution}") + sh=("${sh[@]//CurrentVerticalResolution}") for ((mn = 0; mn < ${#sw[@]}; mn++)) { [[ ${sw[mn]//[[:space:]]} && ${sh[mn]//[[:space:]]} ]] && - resolution+=${sw[mn]//[[:space:]]}x${sh[mn]//[[:space:]]}, + resolution+="${sw[mn]//[[:space:]]}x${sh[mn]//[[:space:]]}, " } resolution=${resolution%,}