Fix hang when wallpaper is empty
This commit is contained in:
parent
868344c1a4
commit
928bbf0760
1 changed files with 4 additions and 1 deletions
5
fetch
5
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##*/}"
|
||||
|
|
Loading…
Reference in a new issue