From ef14a671dcd9b005253ed41abc4c77ba7de89dd7 Mon Sep 17 00:00:00 2001 From: "Kevin Veen-Birkenbach [aka. Frantz]" Date: Thu, 30 Apr 2020 10:16:53 +0200 Subject: [PATCH] Solved shellcheck hints --- sd_setup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sd_setup.sh b/sd_setup.sh index b37689d..8bb572e 100644 --- a/sd_setup.sh +++ b/sd_setup.sh @@ -131,13 +131,13 @@ echo "Generating os-image..." download_url="$base_download_url$imagename" image_path="$image_folder$imagename" -echo "Should the image download be forced?(y/n)" && read force_image_download -if [ $force_image_download = "y" ] +echo "Should the image download be forced?(y/n)" && read -r force_image_download +if [ "$force_image_download" = "y" ] then if [ -f "$image_path" ] then echo "Removing image $image_path." - rm $image_path || error "Removing image \"$image_path\" failed." + rm "$image_path" || error "Removing image \"$image_path\" failed." else echo "Forcing download wasn't neccessary. File $image_path doesn't exist." fi