SDCARD-RAW-TOOLS: Abort if user opts to not overwrite raw image file
Otherwise, it will be overwritten anyway.
This commit is contained in:
parent
81af72efee
commit
ab2dd52ccc
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue