properly support git in build/i18n-init.sh
This commit is contained in:
parent
d0f777f5f1
commit
8da6c1a49f
1 changed files with 2 additions and 1 deletions
|
@ -4,7 +4,8 @@ PATTERN=$1
|
|||
SCM=
|
||||
|
||||
[ -d .svn ] && SCM="svn"
|
||||
[ -d .git ] && SCM="git"
|
||||
git=$( which git 2>/dev/null )
|
||||
[ "$git" ] && "$git" status >/dev/null && SCM="git"
|
||||
|
||||
[ -z "$SCM" ] && {
|
||||
echo "Unsupported SCM tool" >&2
|
||||
|
|
Loading…
Reference in a new issue