From 0122bcc9ba599d929341d5addd741d11350b0265 Mon Sep 17 00:00:00 2001 From: discountry Date: Wed, 24 Sep 2025 22:50:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AE=89=E8=A3=85=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=EF=BC=8C=E4=BF=AE=E6=94=B9=20ASTER=5FAPI=5FSECRET=20?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=96=B9=E5=BC=8F=E4=B8=BA=E5=8F=AF=E8=A7=81?= =?UTF-8?q?=E8=BE=93=E5=85=A5=EF=BC=8C=E5=B9=B6=E7=A1=AE=E4=BF=9D=20Bun=20?= =?UTF-8?q?=E5=90=AF=E5=8A=A8=E6=97=B6=E5=85=B7=E6=9C=89=20TTY=20=E6=94=AF?= =?UTF-8?q?=E6=8C=81=EF=BC=8C=E4=BB=A5=E6=94=B9=E5=96=84=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E4=BA=A4=E4=BA=92=E4=BD=93=E9=AA=8C=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.sh b/setup.sh index 2f16101..e877694 100644 --- a/setup.sh +++ b/setup.sh @@ -109,8 +109,7 @@ prompt_env() { echo "ASTER_API_KEY cannot be empty. Please try again." done while true; do - read -r -s -p "ASTER_API_SECRET (input hidden): " ASTER_API_SECRET < /dev/tty - echo + read -r -p "ASTER_API_SECRET: " ASTER_API_SECRET < /dev/tty [ -n "${ASTER_API_SECRET:-}" ] && break echo "ASTER_API_SECRET cannot be empty. Please try again." done @@ -152,7 +151,8 @@ EOF start_bot() { # Bun auto-loads .env; no need to run dotenv explicitly - bun run start + # Ensure Bun has a TTY for interactive menu input + exec bun run start < /dev/tty } main "$@"