aboutsummaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-07-30 02:37:48 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-07-30 02:37:48 +1200
commita8ef0e82175d46985a7974260473e90f70b1570d (patch)
treec228cc077717020f41923e8e35bde6491881c032 /install
parentRemove not-very-helpful Bash option headers (diff)
downloaddotfiles-a8ef0e82175d46985a7974260473e90f70b1570d.tar.gz
dotfiles-a8ef0e82175d46985a7974260473e90f70b1570d.zip
Check for existence of dotfiles dir
Diffstat (limited to 'install')
-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)