X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/f2ea91f2c1499e6e7a8962540385e821f19c2128..85545a1d5a01821af290e54c7efbfc05d5a1d6f7:/scripts/getver.sh diff --git a/scripts/getver.sh b/scripts/getver.sh index c33505edc..515579201 100755 --- a/scripts/getver.sh +++ b/scripts/getver.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash export LANG=C +export LC_ALL=C [ -n "$TOPDIR" ] && cd $TOPDIR try_version() { @@ -17,7 +18,7 @@ try_svn() { try_git() { [ -d .git ] || return 1 - REV="$(git-log | grep -m 1 git-svn-id | awk '{ gsub(/.*@/, "", $2); print $2 }')" + REV="$(git log | grep -m 1 git-svn-id | awk '{ gsub(/.*@/, "", $2); print $2 }')" REV="${REV:+r$REV}" [ -n "$REV" ] }