mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 17:09:21 +00:00
Images: Fix Division by 0 error. Closes #410
This commit is contained in:
2
neofetch
2
neofetch
@@ -2047,7 +2047,7 @@ getimage() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# If $img isn't a file fallback to ascii mode.
|
# 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"
|
image="ascii"
|
||||||
getascii
|
getascii
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user