Update the wallpaper even if the image file already exists

This commit is contained in:
Ohad Livne 2025-07-18 17:05:43 +03:00
parent 277b60c13e
commit ec2016c6d1
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D

View file

@ -23,16 +23,16 @@ outfile="${WALLPAPERS}/${filename}"
if [ -f "${outfile}" ]; then if [ -f "${outfile}" ]; then
echo "Target file already exists" echo "Target file already exists"
exit 0 else
tempfile="$(mktemp)"
curl \
--location \
--output "${tempfile}" \
--silent \
"${picture_url}"
mv "${tempfile}" "${outfile}"
fi fi
tempfile="$(mktemp)"
curl \
--location \
--output "${tempfile}" \
--silent \
"${picture_url}"
mv "${tempfile}" "${outfile}"
ln \ ln \
--force \ --force \
--symbolic \ --symbolic \