improve bash menu

This commit is contained in:
mhsanaei
2024-07-02 00:34:25 +02:00
parent 86586b7e8f
commit b84e3ef338
2 changed files with 5 additions and 6 deletions
+2 -3
View File
@@ -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