Update dotfile application to check for prereqs

This commit is contained in:
Andrew R. M 2025-04-04 17:43:06 +00:00
parent 4c6b31041a
commit 29e48a870f
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"