From 17883640f89121c162485f7d8e01388aa97b7817 Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Wed, 10 Apr 2024 16:10:38 +0530 Subject: [PATCH] unix-setup.sh: perform the rustup setup only if $PERFORM_RUSTUP_SETUP is set to 1 --- .local/scripts/other-common-scripts/unix-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/scripts/other-common-scripts/unix-setup.sh b/.local/scripts/other-common-scripts/unix-setup.sh index 2b02de3..e2a7e66 100644 --- a/.local/scripts/other-common-scripts/unix-setup.sh +++ b/.local/scripts/other-common-scripts/unix-setup.sh @@ -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 }