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."
|
echo "The singbox.service is already active."
|
||||||
else
|
else
|
||||||
while true; do
|
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
|
if [ -z "$domain" ]; then
|
||||||
echo "Domain name cannot be empty. Please try again."
|
echo "Domain name cannot be empty. Please try again."
|
||||||
else
|
else
|
||||||
@ -326,7 +326,7 @@ singbox_handler() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
while true; do
|
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
|
if [ -z "$port" ]; then
|
||||||
echo "Port number cannot be empty. Please try again."
|
echo "Port number cannot be empty. Please try again."
|
||||||
elif ! [[ "$port" =~ ^[0-9]+$ ]]; then
|
elif ! [[ "$port" =~ ^[0-9]+$ ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user