X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=scripts%2Fgetver.sh;h=5155792016ad8af36e63db9a7d3654b14eb9e8eb;hb=a43685367ef84a5579aae53ceb33797e6209a43d;hp=c33505edc7174dfd0e6c4578f18dd3ff68caa714;hpb=51996a78f1abc9a57feeb98bf4cad6e8faec05a3;p=openwrt%2Fstaging%2Fflorian.git diff --git a/scripts/getver.sh b/scripts/getver.sh index c33505edc7..5155792016 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" ] }