Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
RUSTUP_UPDATE_ROOT not set by default #1684
The rust install script (https://sh.rustup.rs) when executed fails with the error:
I tried it on two different ubuntu setup by executing
problem introduced in #1495
The script now contains a potential contradiction if the user has not set a RUSTUP_UPDATE_ROOT. The set makes use of unbound variables an error, and then there is a check for if the variable is empty. This would be fine if the user had set RUSTUP_UPDATE_ROOT to an empty value, but breaks if they haven't set it at all. I have to believe that is quite common.
if [ -z "$RUSTUP_UPDATE_ROOT" ]; then