edit dialog

This commit is contained in:
rootzoll
2020-07-04 15:33:19 +02:00
parent c80c1570ac
commit cb3ccb6e32

View File

@@ -105,14 +105,12 @@ if [ "$1" = "on" ]; then
exit 1 exit 1
fi fi
whiptail --title " FORMATTING DEVICE " --yes-button "Cancel" --no-button "FORMAT" --yesno "Will format the following device as Backup drive: whiptail --title " FORMATTING DEVICE " --yes-button "FORMAT" --no-button "Cancel" --yesno "Will format the following device as Backup drive:
${backupCandidate[0]} ${backupCandidate[0]}
THIS WILL DELETE ALL DATA ON THAT DEVICE! THIS WILL DELETE ALL DATA ON THAT DEVICE!
" 10 60 " 10 55
echo $? if [ $? -gt 0 ]; then
exit 1
if [ $? -eq 0 ]; then
echo "# CANCEL" echo "# CANCEL"
exit 1 exit 1
fi fi