From 652b607ce4c3c5da96aeeb038333771c6287280f Mon Sep 17 00:00:00 2001 From: Dan Schaper Date: Mon, 31 Oct 2016 16:48:02 -0700 Subject: [PATCH] Swap variable names. --- automated install/basic-install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index e5151e29..493f5cd0 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -500,11 +500,11 @@ setDNS() { setLogging() { LogToggleCommand=(whiptail --separate-output --radiolist "Do you want to log queries?\n (Disabling will render graphs on the Admin page useless):" ${r} ${c} 6) - DNSChooseOptions=("On (Reccomended)" "" on + LogChooseOptions=("On (Reccomended)" "" on Off "" off) - DNSchoices=$("${DNSChooseCmd[@]}" "${DNSChooseOptions[@]}" 2>&1 >/dev/tty) + LogChoices=$("${LogToggleCommand[@]}" "${LogChooseOptions[@]}" 2>&1 >/dev/tty) if [[ $? = 0 ]];then - case ${DNSchoices} in + case ${LogChoices} in "On (Recommended)") echo "::: Logging On." queryLogging=true @@ -515,6 +515,7 @@ setLogging() { ;; esac else + # Well never see this, `set -e` kicked in already and dropped us. echo "::: Cancel selected. Exiting..." exit 1 fi