mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-14 07:23:23 -05:00
fix: hand the terminal to a piped installer
This commit is contained in:
1 parent
55eb953447
commit
6a80f3ed08
2 files changed
+50
-1
No files matched your search
+8
-1
@@ -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
|
||||
Reference in new issue
Block a user