SDCARD-RAW-TOOLS: Abort if user opts to not overwrite raw image file
Otherwise, it will be overwritten anyway.
This commit is contained in:
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
|
||||
|
||||
|
||||
Reference in new issue
Block a user