mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Use test -d for a more compatible directory check
This commit is contained in:
parent
cefe4689f2
commit
488a15de7a
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in a new issue