From 453a38d79f43f144868fba804629d0e55abecd05 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 2 Nov 2016 09:44:25 +1100 Subject: [PATCH] Images: Fix Division by 0 error. Closes #410 --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 2f10e260..06d193e1 100755 --- a/neofetch +++ b/neofetch @@ -2047,7 +2047,7 @@ getimage() { fi # If $img isn't a file fallback to ascii mode. - if [ ! -f "$img" ] || [ "$term_width" -le 10 ]; then + if [ ! -f "$img" ] || [ -z "$term_width" ] || [ "$term_width" -le 10 ]; then image="ascii" getascii