fix: hand the terminal to a piped installer

This commit is contained in:
Abdessamad Derraz committed 2026-10-10 03:54:26 +02:00
1 parent 55eb953447
commit 6a80f3ed08
2 files changed
+50 -1

No files matched your search

+8 -1
View File
@@ -97,4 +97,11 @@ if [ -z "$PYTHON" ]; then
exit 1
fi
"$PYTHON" "$INSTALLER" "$@"
# Piped from curl, standard input is this script, not the terminal: the
# installer would skip every question it can ask. Hand it the terminal when
# there is one.
if [ ! -t 0 ] && (: </dev/tty) 2>/dev/null; then
"$PYTHON" "$INSTALLER" "$@" </dev/tty
else
"$PYTHON" "$INSTALLER" "$@"
fi