refactor: update Nix installation command to use --no-confirm and simplify pipx ensurepath
Some checks failed
Nix Format Check / check-format (push) Failing after 37s
Some checks failed
Nix Format Check / check-format (push) Failing after 37s
This commit is contained in:
parent
0f0d67d419
commit
b20386462a
6
setup.sh
6
setup.sh
@ -139,7 +139,7 @@ install_nix() {
|
|||||||
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix -o install-nix.sh || \
|
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix -o install-nix.sh || \
|
||||||
die "Failed to download Nix installer"
|
die "Failed to download Nix installer"
|
||||||
|
|
||||||
sh install-nix.sh install || die "Failed to install Nix"
|
sh install-nix.sh install --no-confirm || die "Failed to install Nix"
|
||||||
rm install-nix.sh || die "Failed to remove Nix installer"
|
rm install-nix.sh || die "Failed to remove Nix installer"
|
||||||
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh || die "Failed to source Nix profile"
|
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh || die "Failed to source Nix profile"
|
||||||
}
|
}
|
||||||
@ -252,8 +252,8 @@ ensure_pipx() {
|
|||||||
sudo pacman -S python-pipx || die "Failed to install pipx"
|
sudo pacman -S python-pipx || die "Failed to install pipx"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ensurepath globally
|
# ensurepath
|
||||||
sudo pipx ensurepath --global || die "Failed to ensure pipx path"
|
sudo pipx ensurepath || die "Failed to ensure pipx path"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user