Images: Fix Division by 0 error. Closes #410
This commit is contained in:
parent
7b2dcea117
commit
453a38d79f
1 changed files with 1 additions and 1 deletions
2
neofetch
2
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue