From 13230dbe6f1f0905c051613c5155b5cf0088dfe9 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 30 Jul 2022 23:10:58 -0500 Subject: [PATCH] fix: use full path for rustup --- install.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.bash b/install.bash index bfd7619..f45db1c 100644 --- a/install.bash +++ b/install.bash @@ -100,7 +100,7 @@ install-rust() { if [[ -z "$(ls "${RUSTUP_HOME}/toolchains" >/dev/null)" ]]; then 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}" - if ! rustup default stable; then + if ! "${CARGO_HOME}/bin/rustup" default stable; then log "error" "Failed to set a ${GREEN}Rust${RESET_BOLD} toolchain" return 1 fi