fix: install chezmoi if necessary

This commit is contained in:
Peter 2024-02-20 17:22:53 +01:00
parent 7055986bb2
commit 6c27456424
Signed by: prskr
GPG key ID: F56BED6903BC5E37

View file

@ -4,6 +4,8 @@ export PATH=$PATH:$HOME/.local/bin
curl -sS https://starship.rs/install.sh | sudo sh -s -- --yes curl -sS https://starship.rs/install.sh | sudo sh -s -- --yes
which chezmoi 2>&1 > /dev/null || sudo sh -c "$(curl -fsLS get.chezmoi.io)" -- -b /usr/local/bin
chezmoi init --apply https://code.icb4dc0.de/prskr/dotfiles.git chezmoi init --apply https://code.icb4dc0.de/prskr/dotfiles.git
if $(which dnf 2>&1 > /dev/null); then if $(which dnf 2>&1 > /dev/null); then