chbg fix
This commit is contained in:
4
bin/chbg
4
bin/chbg
@@ -120,7 +120,7 @@ echo "Selected: $randomimage"
|
||||
|
||||
if [ -f "$randomimage" ]; then
|
||||
set_wallpaper "$randomimage"
|
||||
return
|
||||
exit 0
|
||||
fi
|
||||
|
||||
tmpfile=$(mktemp)
|
||||
@@ -131,6 +131,6 @@ elif command -v wget >/dev/null 2>&1; then
|
||||
wget -qO "$tmpfile" "$randomimage"
|
||||
else
|
||||
echo "!) Unable to fetch image without 'curl' or 'wget'." >&2
|
||||
return 2
|
||||
exit 2
|
||||
fi
|
||||
set_wallpaper "$tmpfile"
|
||||
|
||||
Reference in New Issue
Block a user