Make the script download the newest image

This commit is contained in:
Simon V. Lejel 2023-09-18 17:42:58 +02:00
parent 0d93102765
commit f411f2cc92
Signed by: sl
GPG key ID: 6544A0430A2CFFAD

View file

@ -10,3 +10,6 @@ latest_image_url=$(echo $images | jq '.[0].imageUrl' | tr -d '"')
latest_image_title=$(echo $images | jq '.[0].title' | tr -d '"')
latest_image_copyright=$(echo $images | jq '.[0].copyright' | tr -d '"')
# Get the image and write it to the defined folder
wget $latest_image_url -O $1/defaultWithoutText.jpg