diff options
author | Jonas Gorski <jonas.gorski@gmail.com> | 2016-07-13 16:56:41 +0200 |
---|---|---|
committer | Jonas Gorski <jonas.gorski@gmail.com> | 2016-07-13 16:56:41 +0200 |
commit | 6f86d2e2ab25f7fb8e915556d025f007f41cece6 (patch) | |
tree | 93cf36445d5819d13622da1245800a33d97cd9ca /scripts/getver.sh | |
parent | 4eb5aad667bc838b8ebb80c9b970d6bb2f6c013d (diff) | |
download | mtk-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>
Diffstat (limited to 'scripts/getver.sh')
-rwxr-xr-x | scripts/getver.sh | 2 |
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)))" ;; *) |