aboutsummaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-08-20 11:31:19 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-08-20 11:31:19 +1200
commitbef6ff0115948128be6514cb606efee2d2c63f43 (patch)
treead9ad42fea8c69b8939f0549a129b10cb2664438 /install
parentRemove unneeded quoting within [[ ]] (diff)
downloaddotfiles-bef6ff0115948128be6514cb606efee2d2c63f43.tar.gz
dotfiles-bef6ff0115948128be6514cb606efee2d2c63f43.zip
Fix dotfiles dir existence test
Should have been using -d, not -n
Diffstat (limited to 'install')
-rwxr-xr-xinstall2
1 files changed, 1 insertions, 1 deletions
diff --git a/install b/install
index a8d870fe..b930c9a7 100755
--- a/install
+++ b/install
@@ -2,7 +2,7 @@
# Define dotfiles directory and check it exists
dotfiles="$HOME/.dotfiles"
-if [[ ! -n $dotfiles ]]; then
+if [[ ! -d $dotfiles ]]; then
printf "Could not find $dotfiles!\n" >&2
exit 1
fi