✨ Make the script download the newest image
This commit is contained in:
parent
0d93102765
commit
f411f2cc92
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue