diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-07-30 02:37:48 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-07-30 02:37:48 +1200 |
commit | a8ef0e82175d46985a7974260473e90f70b1570d (patch) | |
tree | c228cc077717020f41923e8e35bde6491881c032 /install | |
parent | Remove not-very-helpful Bash option headers (diff) | |
download | dotfiles-a8ef0e82175d46985a7974260473e90f70b1570d.tar.gz dotfiles-a8ef0e82175d46985a7974260473e90f70b1570d.zip |
Check for existence of dotfiles dir
Diffstat (limited to 'install')
-rwxr-xr-x | install | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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) |