From 6c0a40f186da7477491bded4181fc071d1cfa63d Mon Sep 17 00:00:00 2001 From: moilanik Date: Tue, 3 Mar 2026 11:32:28 +0200 Subject: [PATCH] fix: use /dev/tty directly for interactive docs/ prompt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - remove /dev/tty stdin redirect from exec (unreliable on macOS) - check [[ -e /dev/tty ]] instead of [[ -t 0 ]] — works through curl | bash - read answer directly from /dev/tty, bypassing piped stdin --- apply.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/apply.sh b/apply.sh index d77a484..4e0fc78 100755 --- a/apply.sh +++ b/apply.sh @@ -18,8 +18,7 @@ if [[ -z "${BASH_SOURCE[0]:-}" ]]; then git clone "$REPO_URL" "$TARGET" || { echo "✗ git clone failed"; exit 1; } fi # Pass DEV_ROOT explicitly — local mode must not guess it from script location - # Reopen stdin from /dev/tty so local mode can prompt interactively - exec bash "$TARGET/apply.sh" --bootstrapped "$DEV_ROOT"