diff options
author | RD WebDesign <github@rdwebdesign.com.br> | 2022-10-08 22:29:10 +0300 |
---|---|---|
committer | RD WebDesign <github@rdwebdesign.com.br> | 2022-10-10 06:27:03 +0300 |
commit | c5b3b8dd680c9a288fc6ce6e974e2797de9ce9b7 (patch) | |
tree | ba00874210e19ff92270223029266ec62e15fcbc | |
parent | 46986714d41732f99cb4f4fd57d0fbc787a4aa76 (diff) |
Fix `pihole -r` dialog exit
- if an option is selected: Get option (repair/reconfigure);
- if exit or ESC: Get exit code (1/255)
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
-rwxr-xr-x | automated install/basic-install.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index f3df72e6..d4c1ce77 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -2022,9 +2022,8 @@ update_dialogs() { \\n($strAdd)"\ "${r}" "${c}" 2 \ "${opt1a}" "${opt1b}" \ - "${opt2a}" "${opt2b}" || true) + "${opt2a}" "${opt2b}") || result=$? - result=$? case ${result} in "${DIALOG_CANCEL}" | "${DIALOG_ESC}") printf " %b Cancel was selected, exiting installer%b\\n" "${COL_LIGHT_RED}" "${COL_NC}" |