Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x-ui.sh')
-rw-r--r--x-ui.sh5
1 files changed, 2 insertions, 3 deletions
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