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%,}