Browse Source

Update alpine-adguard.sh

add `newt` check
tteckster 2 năm trước cách đây
mục cha
commit
2b5ff5bb0e
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      ct/alpine-adguard.sh

+ 3 - 0
ct/alpine-adguard.sh

@@ -52,6 +52,9 @@ function default_settings() {
 }
 
 function update_script() {
+  if ! apk -e info newt >/dev/null 2>&1; then
+    apk add newt
+  fi
   while true; do
     CHOICE=$(
       whiptail --title "SUPPORT" --menu "Select option" 11 58 2 \