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:
parent
4eb5aad667
commit
6f86d2e2ab
1 changed files with 1 additions and 1 deletions
|
@ -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)))"
|
||||
;;
|
||||
*)
|
||||
|
|
Loading…
Reference in a new issue