Update dotfile application to check for prereqs
This commit is contained in:
parent
4c6b31041a
commit
29e48a870f
@ -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"
|
||||||
|
if which stow &> /dev/null; then
|
||||||
./apply-dotfiles
|
./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"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user