From 43ae3b6767b68fec9ee1a09fd4f501cdd39cbce4 Mon Sep 17 00:00:00 2001 From: Dylan Date: Sun, 21 Feb 2016 07:07:41 +1100 Subject: [PATCH] Fix integer error --- fetch | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fetch b/fetch index 75165fbd..011d4b28 100755 --- a/fetch +++ b/fetch @@ -1825,6 +1825,9 @@ getimage () { # Fallback to ascii mode if imagemagick isn't installed. type -p convert >/dev/null 2>&1 || image="ascii" + # Get terminal lines + lines=$(tput lines) + # Call function based on $image case "$image" in "wall") getwallpaper ;; @@ -1855,9 +1858,8 @@ getimage () { return fi - # Get terminal lines and columns + # Get terminal columns columns=$(tput cols) - lines=$(tput lines) # Calculate font size font_width=$((term_width / columns))