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>
This commit is contained in:
Jonas Gorski 2016-07-13 16:56:41 +02:00
parent 4eb5aad667
commit 6f86d2e2ab

View file

@ -19,7 +19,7 @@ try_git() {
case "$GET_REV" in case "$GET_REV" in
r*) r*)
GET_REV="$(echo $GET_REV | tr -d '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)))" REV="$(git rev-parse HEAD~$((BASE_REV - GET_REV)))"
;; ;;
*) *)