Fixed moving the cursor

This commit is contained in:
Whispering Wind
2024-08-16 20:38:49 +03:30
committed by GitHub
parent 9560a12949
commit f827af50f9

View File

@ -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