From bf0eef3f0703d096a975c45d04b5988a674d937e Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 23 Jan 2020 19:17:23 +0200 Subject: [PATCH] neofetch: Fix windows issue. Closes #1297 --- neofetch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index df9371f2..39045f89 100755 --- a/neofetch +++ b/neofetch @@ -2793,7 +2793,8 @@ get_resolution() { sh=("${sh[@]//*CurrentVerticalResolution*}") for ((mn = 0; mn < ${#sw[@]}; mn++)) { - resolution+=${sw[mn]//[[:space:]]}x${sh[mn]//[[:space:]]}, + [[ ${sw[mn]//[[:space:]]} && ${sh[mn]//[[:space:]]} ]] && + resolution+=${sw[mn]//[[:space:]]}x${sh[mn]//[[:space:]]}, } resolution=${resolution%,}