Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openwrt/luci.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2012-11-20 15:42:35 +0400
committerDaniel Golle <daniel@makrotopia.org>2012-11-20 15:42:35 +0400
commit8da6c1a49f2ab91d8816a41df0ce5cacb5b9f084 (patch)
tree6a77ef6855c122f58277b02e83ee32b9bb092738 /build
parentd0f777f5f15c538621decd42eb5dde19668a65f3 (diff)
properly support git in build/i18n-init.sh
Diffstat (limited to 'build')
-rwxr-xr-xbuild/i18n-init.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/build/i18n-init.sh b/build/i18n-init.sh
index 9a206bb2a7..b20fbc3347 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