diff --git a/neofetch b/neofetch index 7704c94e..1d7a049c 100755 --- a/neofetch +++ b/neofetch @@ -1290,7 +1290,8 @@ getresolution () { height=${height/ScreenHeight'='/} height=${height//[[:space:]]} - resolution="${width}x${height}" + [ ! -z "$width" ] && \ + resolution="${width}x${height}" ;; "*")