From b84e3ef33812e829078a8661da57f020438bcf6b Mon Sep 17 00:00:00 2001 From: mhsanaei Date: Tue, 2 Jul 2024 00:34:25 +0200 Subject: improve bash menu --- x-ui.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'x-ui.sh') diff --git a/x-ui.sh b/x-ui.sh index 9e452b96..7bb8add3 100644 --- a/x-ui.sh +++ b/x-ui.sh @@ -262,10 +262,9 @@ reset_webbasepath() { echo -e "${yellow}Resetting Web Base Path${plain}" # Prompt user to set a new web base path - read -rp "Please set the new web base path [default is a random path]: " config_webBasePath + read -rp "Please set the new web base path [press 'y' for a random path]: " config_webBasePath - # If user input is empty, generate a random path - if [[ -z $config_webBasePath ]]; then + if [[ $config_webBasePath == "y" ]]; then config_webBasePath=$(gen_random_string 10) fi -- cgit v1.2.3