Fix read
This commit is contained in:
4
menu.sh
4
menu.sh
@ -267,7 +267,7 @@ telegram_bot_handler() {
|
|||||||
echo "The hysteria-bot.service is already active."
|
echo "The hysteria-bot.service is already active."
|
||||||
else
|
else
|
||||||
while true; do
|
while true; do
|
||||||
read -p "Enter the Telegram bot token: " token
|
read -e -p "Enter the Telegram bot token: " token
|
||||||
if [ -z "$token" ]; then
|
if [ -z "$token" ]; then
|
||||||
echo "Token cannot be empty. Please try again."
|
echo "Token cannot be empty. Please try again."
|
||||||
else
|
else
|
||||||
@ -276,7 +276,7 @@ telegram_bot_handler() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
read -p "Enter the admin IDs (comma-separated): " admin_ids
|
read -e -p "Enter the admin IDs (comma-separated): " admin_ids
|
||||||
if [ -z "$admin_ids" ]; then
|
if [ -z "$admin_ids" ]; then
|
||||||
echo "Admin IDs cannot be empty. Please try again."
|
echo "Admin IDs cannot be empty. Please try again."
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user