Skip to content
Snippets Groups Projects
Commit 6f86d2e2 authored by Jonas Gorski's avatar Jonas Gorski
Browse files

scripts/getver.sh: fix one more wc -l call


The revision to hash conversion was missed when fixing up the script.

Signed-off-by: default avatarJonas Gorski <jonas.gorski@gmail.com>
parent 4eb5aad6
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ try_git() { ...@@ -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)))"
;; ;;
*) *)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment