From 29e48a870f01699e2179b7838f4cf50bfce2313b Mon Sep 17 00:00:00 2001 From: "Andrew R. M" Date: Fri, 4 Apr 2025 17:43:06 +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 e175508..0e87d85 100755 --- a/install.sh +++ b/install.sh @@ -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"