[source] scripts/getver.sh: fix one more wc -l call
LEDE Commits
lede-commits at lists.infradead.org
Wed Jul 13 07:57:38 PDT 2016
jogo pushed a commit to source.git, branch master:
https://git.lede-project.org/?p=source.git;a=commitdiff;h=6f86d2e2ab25f7fb8e915556d025f007f41cece6
commit 6f86d2e2ab25f7fb8e915556d025f007f41cece6
Author: Jonas Gorski <jonas.gorski at gmail.com>
AuthorDate: Wed Jul 13 16:56:41 2016 +0200
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 at gmail.com>
---
scripts/getver.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/getver.sh b/scripts/getver.sh
index 38d526c..46eee9a 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)))"
;;
*)
More information about the lede-commits
mailing list