From 488a15de7a7a5b2c7efb016fe79f1101999f2dc3 Mon Sep 17 00:00:00 2001 From: Aggelos Orfanakos Date: Thu, 2 Sep 2010 20:06:08 +0300 Subject: [PATCH] Use `test -d` for a more compatible directory check --- bin/git-setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-setup b/bin/git-setup index 0d33d14..0320523 100755 --- a/bin/git-setup +++ b/bin/git-setup @@ -2,5 +2,5 @@ test -z "$1" && echo "path required." && exit 1 cd "$1" -[[ -d .git ]] && exit +test -d .git && exit git init && git add . && git commit -m 'Initial commit'