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