scripts/getver.sh: fix one more wc -l call
authorJonas Gorski <jonas.gorski@gmail.com>
Wed, 13 Jul 2016 14:56:41 +0000 (16:56 +0200)
committerJonas Gorski <jonas.gorski@gmail.com>
Wed, 13 Jul 2016 14:56:41 +0000 (16:56 +0200)
The revision to hash conversion was missed when fixing up the script.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
scripts/getver.sh

index 38d526c..46eee9a 100755 (executable)
@@ -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)))"
                ;;
        *)