mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-23 20:12:31 +00:00
Fix integer error
This commit is contained in:
6
fetch
6
fetch
@@ -1825,6 +1825,9 @@ getimage () {
|
|||||||
# Fallback to ascii mode if imagemagick isn't installed.
|
# Fallback to ascii mode if imagemagick isn't installed.
|
||||||
type -p convert >/dev/null 2>&1 || image="ascii"
|
type -p convert >/dev/null 2>&1 || image="ascii"
|
||||||
|
|
||||||
|
# Get terminal lines
|
||||||
|
lines=$(tput lines)
|
||||||
|
|
||||||
# Call function based on $image
|
# Call function based on $image
|
||||||
case "$image" in
|
case "$image" in
|
||||||
"wall") getwallpaper ;;
|
"wall") getwallpaper ;;
|
||||||
@@ -1855,9 +1858,8 @@ getimage () {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Get terminal lines and columns
|
# Get terminal columns
|
||||||
columns=$(tput cols)
|
columns=$(tput cols)
|
||||||
lines=$(tput lines)
|
|
||||||
|
|
||||||
# Calculate font size
|
# Calculate font size
|
||||||
font_width=$((term_width / columns))
|
font_width=$((term_width / columns))
|
||||||
|
|||||||
Reference in New Issue
Block a user