From 7c9912e4df2a16641fe9f383d59f0be44e49476a Mon Sep 17 00:00:00 2001 From: rootzoll Date: Sat, 4 Jul 2020 15:31:08 +0200 Subject: [PATCH] edit dialog --- home.admin/config.scripts/blitz.backupdevice.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/home.admin/config.scripts/blitz.backupdevice.sh b/home.admin/config.scripts/blitz.backupdevice.sh index 2c31e6221..94dce13ff 100644 --- a/home.admin/config.scripts/blitz.backupdevice.sh +++ b/home.admin/config.scripts/blitz.backupdevice.sh @@ -105,13 +105,12 @@ if [ "$1" = "on" ]; then exit 1 fi - whiptail --title " FORMATTING DEVICE " --yes-button "FORMAT" --no-button "Cancel" --yesno " -Will format the following device as Backup drive: + whiptail --title " FORMATTING DEVICE " --yes-button "Cancel" --no-button "FORMAT" --yesno "Will format the following device as Backup drive: ${backupCandidate[0]} THIS WILL DELETE ALL DATA ON THAT DEVICE! - " 9 60 - if [ $? -eq 1 ]; then + " 11 60 + if [ $? -eq 0 ]; then echo "# CANCEL" exit 1 fi