unix-setup.sh: perform the rustup setup only if $PERFORM_RUSTUP_SETUP is set to 1
This commit is contained in:
parent
76f73bd05c
commit
17883640f8
|
@ -174,7 +174,7 @@ function home_manager_setup() {
|
||||||
function run_rustup() {
|
function run_rustup() {
|
||||||
RUSTUP_PATH="${HOME}"/.nix-profile/bin/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
|
"${HOME}"/.local/scripts/other-common-scripts/rust-manage.sh "${HOME}"/.nix-profile/bin/rustup
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue