Solved multiple bugs

This commit is contained in:
Kevin Veen-Birkenbach 2020-04-29 19:24:43 +02:00
parent 4afea78531
commit 387ad34745

View File

@ -112,7 +112,7 @@ esac
echo "Download os-image..." echo "Download os-image..."
download_url="$base_download_url$imagename" download_url="$base_download_url$imagename"
image_path="$image_folder$image_path" image_path="$image_folder$imagename"
if [ ! -f "$image_path" ] if [ ! -f "$image_path" ]
then then
@ -120,7 +120,7 @@ if [ ! -f "$image_path" ]
if [ ! -f "$image_path" ] if [ ! -f "$image_path" ]
then then
echo "Image \"$imagename\" gets downloaded from \"$download_url\"..." 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
fi fi