Update dotfile application to check for prereqs
This commit is contained in:
parent
c3a9ed26f7
commit
9016dfdaf3
@ -48,5 +48,12 @@ shopt -u nocasematch
|
||||
|
||||
# Apply the dotfiles with stow
|
||||
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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user