Use test -d for a more compatible directory check

This commit is contained in:
Aggelos Orfanakos 2010-09-02 20:06:08 +03:00
parent cefe4689f2
commit 488a15de7a

View file

@ -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'