Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions rustup-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,17 @@ main() {
exit 1
fi

# If a default host has been specified on the command line, we should
# revert our own override before calling the installer.
for arg in "$@"; do
case "$arg" in
--default-host|--default-host=*)
_default_host_override=
break
;;
esac
done

if [ "$need_tty" = "yes" ] && [ ! -t 0 ]; then
# The installer is going to want to ask for confirmation by
# reading stdin. This script was piped into `sh` though and
Expand Down
Loading