From 387ad34745b382973db04a931497f15ca581f6cb Mon Sep 17 00:00:00 2001 From: "Kevin Veen-Birkenbach [aka. Frantz]" Date: Wed, 29 Apr 2020 19:24:43 +0200 Subject: [PATCH] Solved multiple bugs --- sd_setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sd_setup.sh b/sd_setup.sh index 87efde8..9fe4970 100644 --- a/sd_setup.sh +++ b/sd_setup.sh @@ -112,7 +112,7 @@ esac echo "Download os-image..." download_url="$base_download_url$imagename" -image_path="$image_folder$image_path" +image_path="$image_folder$imagename" if [ ! -f "$image_path" ] then @@ -120,7 +120,7 @@ if [ ! -f "$image_path" ] if [ ! -f "$image_path" ] then echo "Image \"$imagename\" gets downloaded from \"$download_url\"..." - wget "$download_url" -P "$image_folder" + wget "$download_url" -P "$image_folder" || (echo "Download failed. Program aborted." && exit 1) fi fi