From 6f86d2e2ab25f7fb8e915556d025f007f41cece6 Mon Sep 17 00:00:00 2001 From: Jonas Gorski Date: Wed, 13 Jul 2016 16:56:41 +0200 Subject: [PATCH] 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 --- scripts/getver.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/getver.sh b/scripts/getver.sh index 38d526cb53..46eee9a049 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)))" ;; *)