From 1c4589471174227fb7438ce4a0d05cfb2d9d7186 Mon Sep 17 00:00:00 2001 From: Jason Woltje Date: Sat, 21 Feb 2026 19:03:07 +0000 Subject: [PATCH] fix: redirect stdin from /dev/tty for curl|sh installs (#3) Co-authored-by: Jason Woltje Co-committed-by: Jason Woltje --- remote-install.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/remote-install.sh b/remote-install.sh index 933e6aa..114be02 100755 --- a/remote-install.sh +++ b/remote-install.sh @@ -44,15 +44,20 @@ WIZARD_BIN="$WORK_DIR/bootstrap/dist/mosaic-wizard.mjs" if command -v node >/dev/null 2>&1 && [ -f "$WIZARD_BIN" ]; then NODE_MAJOR="$(node -e 'console.log(process.versions.node.split(".")[0])')" if [ "$NODE_MAJOR" -ge 18 ] 2>/dev/null; then - echo "[mosaic] Running wizard installer (Node.js $NODE_MAJOR detected)..." - node "$WIZARD_BIN" --source-dir "$WORK_DIR/bootstrap" + if [ -e /dev/tty ]; then + echo "[mosaic] Running wizard installer (Node.js $NODE_MAJOR detected)..." + node "$WIZARD_BIN" --source-dir "$WORK_DIR/bootstrap"