Browse Source

Fix read command prompt

old-stable
Mitesh Shah 11 years ago
parent
commit
f88833621f
  1. 2
      src/modules/site/delete/ee_mod_delete_nginxconf.sh
  2. 2
      src/modules/site/delete/ee_mod_delete_webroot.sh

2
src/modules/site/delete/ee_mod_delete_nginxconf.sh

@ -7,6 +7,8 @@ function ee_mod_delete_nginxconf()
# Delete NGINX configuration without any prompt
local ee_prompt="y"
else
# Fix read prompt
stty echo
# Ask user to confirm
read -p "Are you sure to remove $EE_DOMAIN NGINX configuration (y/n): " ee_prompt
fi

2
src/modules/site/delete/ee_mod_delete_webroot.sh

@ -7,6 +7,8 @@ function ee_mod_delete_webroot()
# Delete webroot without any prompt
local ee_prompt="y"
else
# Fix read prompt
stty echo
# Ask user to confirm
read -p "Are you sure to remove $EE_DOMAIN webroot (y/n): " ee_prompt
fi

Loading…
Cancel
Save