Fixed moving the cursor
This commit is contained in:
4
menu.sh
4
menu.sh
@ -317,7 +317,7 @@ singbox_handler() {
|
||||
echo "The singbox.service is already active."
|
||||
else
|
||||
while true; do
|
||||
read -p "Enter the domain name for the SSL certificate: " domain
|
||||
read -e -p "Enter the domain name for the SSL certificate: " domain
|
||||
if [ -z "$domain" ]; then
|
||||
echo "Domain name cannot be empty. Please try again."
|
||||
else
|
||||
@ -326,7 +326,7 @@ singbox_handler() {
|
||||
done
|
||||
|
||||
while true; do
|
||||
read -p "Enter the port number for the service: " port
|
||||
read -e -p "Enter the port number for the service: " port
|
||||
if [ -z "$port" ]; then
|
||||
echo "Port number cannot be empty. Please try again."
|
||||
elif ! [[ "$port" =~ ^[0-9]+$ ]]; then
|
||||
|
||||
Reference in New Issue
Block a user