From db92ba133b05490adc27706aef89317c9deb88fb Mon Sep 17 00:00:00 2001 From: anmiller Date: Tue, 11 Mar 2025 13:35:07 +0000 Subject: [PATCH] Update dotfile application to check for prereqs --- nix-install => apply-dotfiles-nix | 0 install.sh | 9 ++++++++- 2 files changed, 8 insertions(+), 1 deletion(-) rename nix-install => apply-dotfiles-nix (100%) diff --git a/nix-install b/apply-dotfiles-nix similarity index 100% rename from nix-install rename to apply-dotfiles-nix diff --git a/install.sh b/install.sh index 3d44a7d..a8b28a2 100755 --- a/install.sh +++ b/install.sh @@ -47,5 +47,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"