Fix hang when wallpaper is empty

This commit is contained in:
Dylan 2016-01-20 21:48:38 +11:00
parent 868344c1a4
commit 928bbf0760
1 changed files with 4 additions and 1 deletions

5
fetch
View File

@ -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##*/}"