This commit is contained in:
2026-02-05 05:17:54 +08:00
parent 9ef73027d7
commit bb4c8559a6

View File

@@ -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"