From f411f2cc92571a3e683df335871e2ffc03cf64f3 Mon Sep 17 00:00:00 2001 From: "Simon V. Lejel" Date: Mon, 18 Sep 2023 17:42:58 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Make=20the=20script=20download=20th?= =?UTF-8?q?e=20newest=20image?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bing-download.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bing-download.sh b/bing-download.sh index 8cba824..20c7c84 100644 --- a/bing-download.sh +++ b/bing-download.sh @@ -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 +