From e70da12429a0f8efa702adb1eee1914f3e320460 Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 22 Mar 2023 17:43:40 -0400 Subject: [PATCH] Update alpine-adguard.sh indentation --- ct/alpine-adguard.sh | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/ct/alpine-adguard.sh b/ct/alpine-adguard.sh index 435ff1dc..27774dd8 100644 --- a/ct/alpine-adguard.sh +++ b/ct/alpine-adguard.sh @@ -52,29 +52,30 @@ function default_settings() { } function update_script() { -while true; do - CHOICE=$(whiptail --title "SUPPORT" --menu "Select option" 11 58 2 \ - "1" "Update LXC OS" \ - "2" "Manually Update AdGuardHome" 3>&2 2>&1 1>&3 - ) - exit_status=$? - if [ $exit_status == 1 ] ; then + while true; do + CHOICE=$( + whiptail --title "SUPPORT" --menu "Select option" 11 58 2 \ + "1" "Update LXC OS" \ + "2" "Manually Update AdGuardHome" 3>&2 2>&1 1>&3 + ) + exit_status=$? + if [ $exit_status == 1 ]; then clear exit-script - fi - header_info - case $CHOICE in - 1 ) + fi + header_info + case $CHOICE in + 1) apk update && apk upgrade exit ;; - 2 ) + 2) header_info echo "In the process of creating a method to update" exit ;; - esac -done + esac + done } start