diff --git a/fetch b/fetch index dddae5fa..33291077 100755 --- a/fetch +++ b/fetch @@ -1031,7 +1031,10 @@ getimage () { esac # If $img is empty, reset padding to 0 and exit the function - [ -z "$img" ] && padding="\e[0C"; return + if [ -z "$img" ]; then + padding="\e[0C" + return + fi # Get name of image and prefix it with it's crop mode and offset imgname="$crop_mode-$crop_offset-$imgsize-${img##*/}"