Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pi-hole/pi-hole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRD WebDesign <github@rdwebdesign.com.br>2022-10-08 22:29:10 +0300
committerRD WebDesign <github@rdwebdesign.com.br>2022-10-10 06:27:03 +0300
commitc5b3b8dd680c9a288fc6ce6e974e2797de9ce9b7 (patch)
treeba00874210e19ff92270223029266ec62e15fcbc
parent46986714d41732f99cb4f4fd57d0fbc787a4aa76 (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-xautomated install/basic-install.sh3
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}"