Bootstrap: run install script with stdin from /dev/tty so prompts work when piped from curl
Made-with: Cursor
This commit is contained in:
parent
0fb4fe7d6c
commit
c9247b8144
1 changed files with 3 additions and 2 deletions
|
|
@ -17,5 +17,6 @@ if [[ ! -f "$INSTALL_SCRIPT" ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd "$DEST"
|
cd "$DEST"
|
||||||
[[ "$EUID" -ne 0 ]] && exec sudo bash "$INSTALL_SCRIPT"
|
# Use /dev/tty for stdin so prompts work when bootstrap is run as: curl ... | sudo bash
|
||||||
exec bash "$INSTALL_SCRIPT"
|
[[ "$EUID" -ne 0 ]] && exec sudo bash "$INSTALL_SCRIPT" < /dev/tty
|
||||||
|
exec bash "$INSTALL_SCRIPT" < /dev/tty
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue