diff options
| author | mhsanaei <ho3ein.sanaei@gmail.com> | 2024-07-02 01:34:25 +0300 |
|---|---|---|
| committer | mhsanaei <ho3ein.sanaei@gmail.com> | 2024-07-02 01:34:25 +0300 |
| commit | b84e3ef33812e829078a8661da57f020438bcf6b (patch) | |
| tree | 159f520b816d8875f60469a16434f4d417a9c368 /x-ui.sh | |
| parent | 86586b7e8fb3fb089bb43b1020b80e0eab1d4cb5 (diff) | |
improve bash menu
Diffstat (limited to 'x-ui.sh')
| -rw-r--r-- | x-ui.sh | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 |
