Handle cancellation properly

This commit is contained in:
Joshua Boniface 2023-09-01 15:41:58 -04:00
parent c3d828e1e3
commit 59c9e662e5
1 changed files with 1 additions and 0 deletions

View File

@ -228,6 +228,7 @@ seed_config() {
echo "WARNING! All data on block device ${target_disk} will be wiped!"
echo -n "Press any key within 15 seconds to cancel... "
if read -t 15; then
DONE="c"
exit 0
fi
echo