mirror of
https://github.com/kevinveenbirkenbach/raspberry-pi-tools.git
synced 2024-11-26 03:44:44 +01:00
Solved multiple bugs
This commit is contained in:
parent
4afea78531
commit
387ad34745
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user