We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68848c9 commit b77c047Copy full SHA for b77c047
rustup-init.sh
@@ -114,8 +114,8 @@ main() {
114
# reading stdin. This script was piped into `sh` though and
115
# doesn't have stdin to pass to its children. Instead we're going
116
# to explicitly connect /dev/tty to the installer's stdin.
117
- if [ ! -e "/dev/tty" ]; then
118
- err "/dev/tty does not exist"
+ if [ ! -t 1 ]; then
+ err "Unable to run interactively. Run with -y to accept defaults, --help for additional options"
119
fi
120
121
run "$_file" "$@" < /dev/tty
0 commit comments