version/version.sh: strip wc whitespace on macos
The output of `wc -l` on darwin starts with a tab: git rev-list 266f6548611ad0de93e7470eb13731db819f184b..HEAD | wc -l 0 Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
This commit is contained in:
parent
b1de2020d7
commit
e9bca0c00b
|
@ -33,7 +33,7 @@ case $# in
|
||||||
# that git displays the full commit hash.
|
# that git displays the full commit hash.
|
||||||
git_hash=$(git describe --always --dirty --exclude '*' --abbrev=200)
|
git_hash=$(git describe --always --dirty --exclude '*' --abbrev=200)
|
||||||
# The number of extra commits between the release base to git_hash.
|
# The number of extra commits between the release base to git_hash.
|
||||||
change_count=$(git rev-list ${base_git_hash}..HEAD | wc -l)
|
change_count=$(git rev-list ${base_git_hash}..HEAD | wc -l | sed 's/ *//')
|
||||||
;;
|
;;
|
||||||
6)
|
6)
|
||||||
# Test mode: rather than run git commands and whatnot, take in
|
# Test mode: rather than run git commands and whatnot, take in
|
||||||
|
|
Loading…
Reference in New Issue