From a7470a71e40d944c29f1d638503973b29be05901 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Fri, 1 Sep 2023 13:26:03 +0330 Subject: [PATCH] bash - Back to Main Menu button --- x-ui.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/x-ui.sh b/x-ui.sh index f73f255d..381e0f45 100644 --- a/x-ui.sh +++ b/x-ui.sh @@ -533,9 +533,13 @@ ssl_cert_issue_main() { echo -e "${green}\t1.${plain} Get SSL" echo -e "${green}\t2.${plain} Revoke" echo -e "${green}\t3.${plain} Force Renew" + echo -e "${green}\t0.${plain} Back to Main Menu" read -p "Choose an option: " choice case "$choice" in - 1) ssl_cert_issue ;; + 0) + show_menu ;; + 1) + ssl_cert_issue ;; 2) local domain="" read -p "Please enter your domain name to revoke the certificate: " domain @@ -730,8 +734,11 @@ warp_cloudflare() { echo -e "${green}\t2.${plain} Account Type (free, plus, team)" echo -e "${green}\t3.${plain} Turn on/off WireProxy" echo -e "${green}\t4.${plain} Uninstall WARP" + echo -e "${green}\t0.${plain} Back to Main Menu" read -p "Choose an option: " choice case "$choice" in + 0) + show_menu ;; 1) bash <(curl -sSL https://raw.githubusercontent.com/hamid-gh98/x-ui-scripts/main/install_warp_proxy.sh) ;;