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 5fe3fc3 + 34c32a8 commit 6264e98Copy full SHA for 6264e98
rustup-init.sh
@@ -72,7 +72,11 @@ main() {
72
local _url="${RUSTUP_UPDATE_ROOT}/dist/${_arch}/rustup-init${_ext}"
73
74
local _dir
75
- _dir="$(ensure mktemp -d)"
+ if ! _dir="$(ensure mktemp -d)"; then
76
+ # Because the previous command ran in a subshell, we must manually
77
+ # propagate exit status.
78
+ exit 1
79
+ fi
80
local _file="${_dir}/rustup-init${_ext}"
81
82
local _ansi_escapes_are_valid=false
0 commit comments