fix: use full path for rustup
This commit is contained in:
parent
bf89d83b3b
commit
13230dbe6f
@ -100,7 +100,7 @@ install-rust() {
|
|||||||
if [[ -z "$(ls "${RUSTUP_HOME}/toolchains" >/dev/null)" ]]; then
|
if [[ -z "$(ls "${RUSTUP_HOME}/toolchains" >/dev/null)" ]]; then
|
||||||
log "info" "No toolchain found, installing a ${GREEN}Rust${RESET_BOLD} toolchain"
|
log "info" "No toolchain found, installing a ${GREEN}Rust${RESET_BOLD} toolchain"
|
||||||
log "info" "Setting ${GREEN}Rust${RESET_BOLD}'s toolchain to ${GREEN}stable${RESET_BOLD}"
|
log "info" "Setting ${GREEN}Rust${RESET_BOLD}'s toolchain to ${GREEN}stable${RESET_BOLD}"
|
||||||
if ! rustup default stable; then
|
if ! "${CARGO_HOME}/bin/rustup" default stable; then
|
||||||
log "error" "Failed to set a ${GREEN}Rust${RESET_BOLD} toolchain"
|
log "error" "Failed to set a ${GREEN}Rust${RESET_BOLD} toolchain"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user