X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=build%2Fi18n-init.sh;h=b20fbc33474499a3c201994347b0fc983dbd8f85;hp=9a206bb2a769d38213975571a65facea9237dd42;hb=6c72dec7e520bf9bef18b5db8656532278bcac26;hpb=0231c256554f51267bf82c34f142da5f341c6833 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