From: Jonas Gorski Date: Wed, 13 Jul 2016 14:56:41 +0000 (+0200) Subject: scripts/getver.sh: fix one more wc -l call X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6f86d2e2ab25f7fb8e915556d025f007f41cece6;p=openwrt%2Fstaging%2Flynxis.git 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 --- diff --git a/scripts/getver.sh b/scripts/getver.sh index 38d526cb53..46eee9a049 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)))" ;; *)