diff --git a/rustup-init.sh b/rustup-init.sh index d1e43f5378..f2f2c79fc4 100755 --- a/rustup-init.sh +++ b/rustup-init.sh @@ -14,7 +14,8 @@ # mksh has this alias by default. has_local() { # shellcheck disable=SC2034 # deliberately unused - local _has_local + # shellcheck disable=SC1007 # PATH= is an intentional command prefix, not a bare assignment + PATH= local _has_local } has_local 2>/dev/null || alias local=typeset