diff --git a/install.sh b/install.sh index ab6bdb4..2116607 100755 --- a/install.sh +++ b/install.sh @@ -49,4 +49,4 @@ cd "${WORK_DIR}/repo" npm ci --no-fund --no-audit echo "Launching suitup inside zsh..." -zsh -lc 'cd "$1" && shift && node src/cli.js "$@"' -- "${WORK_DIR}/repo" "$@" +zsh -lc 'cd "$1" && shift && node src/cli.js "$@"' -- "${WORK_DIR}/repo" "$@" < /dev/tty diff --git a/tests/install-script.test.js b/tests/install-script.test.js index 9c04302..941ec9e 100644 --- a/tests/install-script.test.js +++ b/tests/install-script.test.js @@ -16,12 +16,13 @@ describe("install.sh", () => { }).not.toThrow(); }); - test("downloads the repo archive, installs dependencies, and launches under zsh", () => { + test("downloads the repo archive, installs dependencies, and launches under zsh with terminal input", () => { const content = readFileSync(INSTALL_SCRIPT, "utf-8"); expect(content).toContain("https://github.com/${REPO_SLUG}/archive/refs/heads/${SUITUP_REF}.tar.gz"); expect(content).toContain("npm ci --no-fund --no-audit"); expect(content).toContain("require_cmd zsh"); expect(content).toContain("zsh -lc"); + expect(content).toContain("< /dev/tty"); }); });