Bootstrap: run install script with stdin from /dev/tty so prompts work when piped from curl

Made-with: Cursor
This commit is contained in:
DannyDannyDanny 2026-03-08 18:39:51 +01:00
parent 0fb4fe7d6c
commit c9247b8144

View file

@ -17,5 +17,6 @@ if [[ ! -f "$INSTALL_SCRIPT" ]]; then
fi
cd "$DEST"
[[ "$EUID" -ne 0 ]] && exec sudo bash "$INSTALL_SCRIPT"
exec bash "$INSTALL_SCRIPT"
# Use /dev/tty for stdin so prompts work when bootstrap is run as: curl ... | sudo bash
[[ "$EUID" -ne 0 ]] && exec sudo bash "$INSTALL_SCRIPT" < /dev/tty
exec bash "$INSTALL_SCRIPT" < /dev/tty