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 authored and Priouzeau Christophe committed 2020-02-03 14:41:19 +01:00
1 parent 81af72efee
commit ab2dd52ccc
1 file changed
+3
@@ -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