Update dotfile application to check for prereqs

This commit is contained in:
anmiller 2025-03-11 13:35:07 +00:00
parent 0a7f1e193a
commit db92ba133b
2 changed files with 8 additions and 1 deletions

View File

@ -47,5 +47,12 @@ shopt -u nocasematch
# Apply the dotfiles with stow
echo "Running 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"