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