1
0
Fork 0

unix-setup.sh: run rustup only if I did not remove rustup from the packages list

This commit is contained in:
Pratham Patel 2024-04-10 16:04:43 +05:30
parent 0657273747
commit 7090d6bb4f
Signed by: thefossguy
SSH Key Fingerprint: SHA256:HwRBy9H1FYXWcv/Qi1WY3kmcVtGz2ydZuPJgD4pkusY
1 changed files with 5 additions and 1 deletions

View File

@ -178,7 +178,11 @@ function home_manager_setup() {
fi
}
function run_rustup() {
"${HOME}"/.local/scripts/other-common-scripts/rust-manage.sh "${HOME}"/.nix-profile/bin/rustup
RUSTUP_PATH="${HOME}"/.nix-profile/bin/rustup
if [[ -x "${RUSTUP_PATH}" ]]; then
"${HOME}"/.local/scripts/other-common-scripts/rust-manage.sh "${HOME}"/.nix-profile/bin/rustup
fi
}
function chsh_to_bash() {
if [[ "$(uname -s)" == 'Darwin' ]]; then