From 8da6c1a49f2ab91d8816a41df0ce5cacb5b9f084 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Tue, 20 Nov 2012 11:42:35 +0000 Subject: properly support git in build/i18n-init.sh --- build/i18n-init.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/i18n-init.sh b/build/i18n-init.sh index 9a206bb2a..b20fbc334 100755 --- a/build/i18n-init.sh +++ b/build/i18n-init.sh @@ -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 -- cgit v1.2.3