From a8ef0e82175d46985a7974260473e90f70b1570d Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 30 Jul 2013 02:37:48 +1200 Subject: Check for existence of dotfiles dir --- install | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'install') 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) -- cgit v1.2.3