mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-24 12:32:32 +00:00
Fix hang when wallpaper is empty
This commit is contained in:
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##*/}"
|
||||
|
||||
Reference in New Issue
Block a user