Skip to content

Commit 92bdd6b

Browse files
committed
Replace 'Return to menu?' confirmation with 'asx' in multiple scripts
1 parent ac1a51d commit 92bdd6b

11 files changed

Lines changed: 25 additions & 25 deletions

scripts/menu/slowdns-menu.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ EOF
6969
"5. View Server Logs" \
7070
"6. Reinstall SlowDNS Server" \
7171
"7. Uninstall SlowDNS Server" \
72-
"←. Back to Main Menu")
72+
"←. Back")
7373
else
7474
opt=$(gum choose --limit=1 --header " Choose Option" \
7575
"1. Install SlowDNS Server" \
76-
"←. Back to Main Menu")
76+
"←. Back")
7777
fi
7878

7979
clear
@@ -170,8 +170,8 @@ EOF
170170
echo ""
171171
read -p "Press Enter to continue..."
172172
;;
173-
"←. Back to Main Menu")
174-
return 0
173+
"←. Back")
174+
asx
175175
;;
176176
*)
177177
echo -e "${red}[ Error ]${nc} Invalid option selected."

scripts/menu/xui-menu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ EOF
273273
read -p "Press Enter to continue..."
274274
;;
275275
"←. Back" | "←. Back")
276-
return 0
276+
asx
277277
;;
278278
*)
279279
echo -e "${red}[ Error ]${nc} Invalid option selected."

scripts/ssh/create-account.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ Upgrade: websocket[crlf][crlf]
5454
\`\`\`
5555
EOF
5656

57-
gum confirm "Return to menu?" && menu
57+
gum confirm "Return to menu?" && asx

scripts/ssh/delete-account.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,22 @@ gum format --theme dracula --type markdown <<< "# 🧨 Delete SSH Accounts"
2020
if [ -z "$USER_LIST" ]; then
2121
gum style --foreground 1 "No SSH Account available to delete."
2222
echo -e
23-
gum confirm "Return to menu?" && menu
23+
gum confirm "Return to menu?" && asx
2424
exit 1
2525
fi
2626
2727
SEL=$(echo -e "$USER_LIST" | gum choose --height=15 --no-limit --header="Use SPACE or X to select")
2828
if [ -z "$SEL" ]; then
2929
gum style --foreground 1 "No accounts selected. Use SPACE or X to select"
3030
echo -e
31-
gum confirm "Return to menu?" && menu
31+
gum confirm "Return to menu?" && asx
3232
exit 0
3333
fi
3434
3535
if ! gum confirm "Delete selected accounts?"; then
3636
gum format --type markdown <<< "**❎ Cancelled.**"
3737
echo -e
38-
gum confirm "Return to menu?" && menu
38+
gum confirm "Return to menu?" && asx
3939
exit 0
4040
fi
4141
@@ -50,4 +50,4 @@ done <<< "$SEL"
5050
gum format --type markdown <<< "# 🧹 $COUNT Account(s) deleted"
5151
5252
echo -e
53-
gum confirm "Return to menu?" && menu
53+
gum confirm "Return to menu?" && asx

scripts/ssh/edit-banner.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ else
2727
fi
2828

2929
echo -e
30-
gum confirm "Return to menu?" && menu
30+
gum confirm "Return to menu?" && asx

scripts/ssh/edit-response.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ new_res=$(echo "$old_res" | gum write --placeholder "Write message to show after
1313
if [ -z "$new_res" ] || [ "$new_res" = "$old_res" ]; then
1414
gum style --foreground 1 "No changes detected. Response not updated."
1515
echo -e
16-
gum confirm "Return to menu?" && menu
16+
gum confirm "Return to menu?" && asx
1717
exit 0
1818
fi
1919

@@ -28,4 +28,4 @@ systemctl restart ws-proxy.service
2828
gum style --foreground 212 "✅ 101 Response Updated:"
2929

3030
echo -e
31-
gum confirm "Return to menu?" && menu
31+
gum confirm "Return to menu?" && asx

scripts/ssh/lock-unlock.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ done <<< "$users"
1818
if [[ ${#entries[@]} -eq 0 ]]; then
1919
gum style --foreground 1 "No accounts found."
2020
echo -e
21-
gum confirm "Return to menu?" && menu
21+
gum confirm "Return to menu?" && asx
2222
fi
2323

2424
selected=$(printf "%s\n" "${entries[@]}" | gum choose --height 20 --no-limit --header="Use SPACE or X to select")
2525
if [[ -z "$selected" ]]; then
2626
gum style --foreground 1 "No accounts selected. Use SPACE or X to select"
2727
echo -e
28-
gum confirm "Return to menu?" && menu
28+
gum confirm "Return to menu?" && asx
2929
exit 0
3030
fi
3131

@@ -47,4 +47,4 @@ else
4747
fi
4848

4949
echo -e
50-
gum confirm "Return to menu?" && menu
50+
gum confirm "Return to menu?" && asx

scripts/ssh/renew-account.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ gum format --theme dracula --type markdown "# 🔄 Renew Expired Accounts"
1919
if [ ${#EXPIRED_USERS[@]} -eq 0 ]; then
2020
gum style --foreground 1 "No expired accounts found."
2121
echo -e
22-
gum confirm "Return to menu?" && menu
22+
gum confirm "Return to menu?" && asx
2323
exit 0
2424
fi
2525

@@ -28,15 +28,15 @@ user=$(printf "%s\n" "${EXPIRED_USERS[@]}" | gum choose --height=10 --header="Us
2828
if [ -z "$user" ]; then
2929
gum style --foreground 1 "No accounts selected. Use SPACE or X to select"
3030
echo -e
31-
gum confirm "Return to menu?" && menu
31+
gum confirm "Return to menu?" && asx
3232
fi
3333

3434
echo -ne "\e[38;5;212m📅 Enter number of days to extend (e.g. 7):\e[0m "
3535
read -r days
3636
if [[ ! "$days" =~ ^[0-9]+$ ]]; then
3737
gum style --foreground 1 "Invalid number of days."
3838
echo -e
39-
gum confirm "Return to menu?" && menu
39+
gum confirm "Return to menu?" && asx
4040
fi
4141

4242
expire_date=$(date -u -d "+$days days" +%Y-%m-%d)
@@ -54,4 +54,4 @@ gum format --theme dracula --type markdown <<EOF
5454
EOF
5555

5656
echo -e
57-
gum confirm "Return to menu?" && menu
57+
gum confirm "Return to menu?" && asx

scripts/system/change-domain.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ read -r domain
88
if [[ -z "$domain" ]]; then
99
gum style --foreground 1 "No domain entered."
1010
echo -e
11-
gum confirm "Return to menu?" && menu
11+
gum confirm "Return to menu?" && asx
1212
exit 0
1313
fi
1414

@@ -33,4 +33,4 @@ systemctl restart nginx >/dev/null 2>&1
3333
gum style --foreground 10 "🎉 Domain and SSL setup complete!"
3434

3535
echo -e
36-
gum confirm "Return to menu?" && menu
36+
gum confirm "Return to menu?" && asx

scripts/system/manage-services.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ selected_services=$(printf "%s\n" "${!services[@]}" | gum choose --no-limit --he
3636
if [[ -z "$selected_services" ]]; then
3737
gum style --foreground 1 "No service selected."
3838
echo -e
39-
gum confirm "Return to menu?" && menu
39+
gum confirm "Return to menu?" && asx
4040
exit 0
4141
fi
4242

@@ -51,4 +51,4 @@ while IFS= read -r service; do
5151
done <<< "$selected_services"
5252

5353
echo -e
54-
gum confirm "Return to menu?" && menu
54+
gum confirm "Return to menu?" && asx

0 commit comments

Comments
 (0)