Update dotfile application to check for prereqs
This commit is contained in:
@@ -47,5 +47,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"
|
||||||
|
|||||||
Reference in New Issue
Block a user