Skip to content

Commit 7fbcd05

Browse files
committed
fix: guard exec < /dev/tty with || true for set -e safety
exec < /dev/tty can fail even when the file exists (e.g. "Device not configured"). Under set -e this kills the script.
1 parent 141aa51 commit 7fbcd05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ main() {
9595
# When run via "curl | bash", stdin is the script content, not the terminal.
9696
# Reopen stdin from /dev/tty so interactive prompts (read, sudo, Homebrew) work.
9797
if [[ ! -t 0 ]] && [[ -e /dev/tty ]]; then
98-
exec < /dev/tty
98+
exec < /dev/tty || true
9999
fi
100100

101101
local snapshot_mode=false

0 commit comments

Comments
 (0)