Update dotfile application to check for prereqs

This commit is contained in:
Andrew R. M 2025-04-05 16:37:09 -04:00 committed by Andrew R. M.
parent c3a9ed26f7
commit 9016dfdaf3
2 changed files with 8 additions and 1 deletions

View File

@ -48,5 +48,12 @@ shopt -u nocasematch
# Apply the dotfiles with stow # Apply the dotfiles with stow
echo "Running apply dotfiles" echo "Running apply dotfiles"
./apply-dotfiles if which stow &> /dev/null; then
./apply-dotfiles
elif which nix &> /dev/null; then
./apply-dotfiles-nix
else
echo "Tools for installing dotfiles are unavailable, failing..."
exit 1
fi
echo "Dotfiles applied successfully" echo "Dotfiles applied successfully"