We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d080411 + 35fc16c commit 1cf3d02Copy full SHA for 1cf3d02
rustup-init.sh
@@ -135,7 +135,7 @@ main() {
135
exit 1
136
fi
137
138
- if [ "$need_tty" = "yes" ]; then
+ if [ "$need_tty" = "yes" ] && [ ! -t 0 ]; then
139
# The installer is going to want to ask for confirmation by
140
# reading stdin. This script was piped into `sh` though and
141
# doesn't have stdin to pass to its children. Instead we're going
@@ -287,7 +287,7 @@ get_architecture() {
287
_ostype=unknown-illumos
288
;;
289
290
- MINGW* | MSYS* | CYGWIN*)
+ MINGW* | MSYS* | CYGWIN* | Windows_NT)
291
_ostype=pc-windows-gnu
292
293
0 commit comments