1
0
Fork 0

unix-setup.sh: perform the rustup setup only if $PERFORM_RUSTUP_SETUP is set to 1

This commit is contained in:
Pratham Patel 2024-04-10 16:10:38 +05:30
parent 76f73bd05c
commit 17883640f8
Signed by: thefossguy
SSH Key Fingerprint: SHA256:HwRBy9H1FYXWcv/Qi1WY3kmcVtGz2ydZuPJgD4pkusY
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ function home_manager_setup() {
function run_rustup() {
RUSTUP_PATH="${HOME}"/.nix-profile/bin/rustup
if [[ -x "${RUSTUP_PATH}" ]]; then
if [[ -x "${RUSTUP_PATH}" && "${PERFORM_RUSTUP_SETUP:-0}" == 1 ]]; then
"${HOME}"/.local/scripts/other-common-scripts/rust-manage.sh "${HOME}"/.nix-profile/bin/rustup
fi
}