mirror of
https://github.com/kevinveenbirkenbach/raspberry-pi-tools.git
synced 2024-11-22 18:11:03 +01:00
Solved shellcheck hints
This commit is contained in:
parent
e53f0dda38
commit
ef14a671dc
@ -131,13 +131,13 @@ echo "Generating os-image..."
|
|||||||
download_url="$base_download_url$imagename"
|
download_url="$base_download_url$imagename"
|
||||||
image_path="$image_folder$imagename"
|
image_path="$image_folder$imagename"
|
||||||
|
|
||||||
echo "Should the image download be forced?(y/n)" && read force_image_download
|
echo "Should the image download be forced?(y/n)" && read -r force_image_download
|
||||||
if [ $force_image_download = "y" ]
|
if [ "$force_image_download" = "y" ]
|
||||||
then
|
then
|
||||||
if [ -f "$image_path" ]
|
if [ -f "$image_path" ]
|
||||||
then
|
then
|
||||||
echo "Removing image $image_path."
|
echo "Removing image $image_path."
|
||||||
rm $image_path || error "Removing image \"$image_path\" failed."
|
rm "$image_path" || error "Removing image \"$image_path\" failed."
|
||||||
else
|
else
|
||||||
echo "Forcing download wasn't neccessary. File $image_path doesn't exist."
|
echo "Forcing download wasn't neccessary. File $image_path doesn't exist."
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user