From 928bbf0760e768d2dbfa69badfc120516d695b34 Mon Sep 17 00:00:00 2001 From: Dylan Date: Wed, 20 Jan 2016 21:48:38 +1100 Subject: [PATCH] Fix hang when wallpaper is empty --- fetch | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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##*/}"