projects
/
openwrt
/
staging
/
kaloz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4eb5aad
)
scripts/getver.sh: fix one more wc -l call
author
Jonas Gorski
<jonas.gorski@gmail.com>
Wed, 13 Jul 2016 14:56:41 +0000
(16:56 +0200)
committer
Jonas Gorski
<jonas.gorski@gmail.com>
Wed, 13 Jul 2016 14:56:41 +0000
(16:56 +0200)
The revision to hash conversion was missed when fixing up the script.
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
scripts/getver.sh
patch
|
blob
|
history
diff --git
a/scripts/getver.sh
b/scripts/getver.sh
index 38d526cb532cc00be0e91c8575674de733fb15d9..46eee9a04937109c4989e07d6a1c24efcb41e010 100755
(executable)
--- 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)))"
;;
*)