SDCARD-RAW-TOOLS: Abort if user opts to not overwrite raw image file

Otherwise, it will be overwritten anyway.
This commit is contained in:
Daniel Ammann 2020-01-22 14:43:42 +01:00 committed by Priouzeau Christophe
parent 81af72efee
commit ab2dd52ccc
1 changed files with 3 additions and 0 deletions

View File

@ -833,6 +833,9 @@ else
read answer
if [[ "$answer" =~ ^[Yy]+[ESes]* ]]; then
rm -f $FLASHLAYOUT_rawname $FLASHLAYOUT_infoname
else
echo "Cannot continue."
exit 1
fi
fi