From d6d767963151f76472bf02072d8cb140da5d9821 Mon Sep 17 00:00:00 2001 From: Christian Rotzoll Date: Wed, 10 Apr 2019 15:44:36 +0100 Subject: [PATCH] fix whiptail --- home.admin/05hardwareTest.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/home.admin/05hardwareTest.sh b/home.admin/05hardwareTest.sh index de55dab..f6998b3 100755 --- a/home.admin/05hardwareTest.sh +++ b/home.admin/05hardwareTest.sh @@ -77,13 +77,13 @@ Your are ready to continue - have fun. fi $choice=$(whiptail --backtitle "RaspiBlitz v${codeVersion}" --title " Hardware Check " --menu "What todo about Power Issues?" 12 60 6 \ -"TESTAGAIN" "Run Test again to be sure." \ -"CONTINUE" "I take the risk - continue." \ -"SHUTDOWN" "Shutdown to change hardware." 3>&1 1>&2 2>&3) +TESTAGAIN "Run Test again to be sure." \ +CONTINUE "I take the risk - continue." \ +SHUTDOWN "Shutdown to change hardware." 3>&1 1>&2 2>&3) if [ ${#choice} -eq 0 ]; then - $choice="SHUTDOWN" + $choice="CONTINUE" fi -echo "User eneterd $choice" +echo "User eneterd (${choice})" if [ "${choice}" == "TESTAGAIN" ]; then echo "Shutting down ..." sudo /home/admin/05hardwareTest.sh