aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinstall6
1 files changed, 5 insertions, 1 deletions
diff --git a/install b/install
index ee469ccc..33eebca1 100755
--- a/install
+++ b/install
@@ -1,7 +1,11 @@
#!/usr/bin/env bash
-# Define dotfiles directory
+# Define dotfiles directory and check it exists
dotfiles="$HOME/.dotfiles"
+if [[ ! -n "$dotfiles" ]]
+then
+ echo "Could not find $dotfiles!" >&2
+fi
# Check out submodules
(cd -- "$dotfiles" && git submodule update --init)