summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Gorski <jonas.gorski@gmail.com>2016-07-13 16:56:41 +0200
committerJonas Gorski <jonas.gorski@gmail.com>2016-07-13 16:56:41 +0200
commit6f86d2e2ab25f7fb8e915556d025f007f41cece6 (patch)
tree93cf36445d5819d13622da1245800a33d97cd9ca
parent4eb5aad667bc838b8ebb80c9b970d6bb2f6c013d (diff)
downloadmtk-20170518-6f86d2e2ab25f7fb8e915556d025f007f41cece6.zip
mtk-20170518-6f86d2e2ab25f7fb8e915556d025f007f41cece6.tar.gz
mtk-20170518-6f86d2e2ab25f7fb8e915556d025f007f41cece6.tar.bz2
scripts/getver.sh: fix one more wc -l call
The revision to hash conversion was missed when fixing up the script. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
-rwxr-xr-xscripts/getver.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/getver.sh b/scripts/getver.sh
index 38d526c..46eee9a 100755
--- a/scripts/getver.sh
+++ b/scripts/getver.sh
@@ -19,7 +19,7 @@ try_git() {
case "$GET_REV" in
r*)
GET_REV="$(echo $GET_REV | tr -d 'r')"
- BASE_REV="$(git rev-list reboot..HEAD | wc -l)"
+ BASE_REV="$(git rev-list reboot..HEAD | wc -l | awk '{print $1}')"
REV="$(git rev-parse HEAD~$((BASE_REV - GET_REV)))"
;;
*)