aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2015-05-04 10:58:21 -0400
committerCory Fields <cory-nospam-@coryfields.com>2015-05-04 10:58:21 -0400
commitc1149f73714a47139cce0d93e92e6b871905b0a1 (patch)
tree16708773be75bd1deaf69f982783805d3e8a67ee /share
parent16341cc15c545415ea996052dbd0b5bee0127571 (diff)
downloadbitcoin-c1149f73714a47139cce0d93e92e6b871905b0a1.tar.xz
build: if there's no recent git tag, don't spew error messages
Diffstat (limited to 'share')
-rwxr-xr-xshare/genbuild.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/genbuild.sh b/share/genbuild.sh
index ffa89ca6e4..a15cb34e47 100755
--- a/share/genbuild.sh
+++ b/share/genbuild.sh
@@ -22,7 +22,7 @@ if [ -e "$(which git 2>/dev/null)" -a "$(git rev-parse --is-inside-work-tree 2>/
# if latest commit is tagged and not dirty, then override using the tag name
RAWDESC=$(git describe --abbrev=0 2>/dev/null)
- if [ "$(git rev-parse HEAD)" = "$(git rev-list -1 $RAWDESC)" ]; then
+ if [ "$(git rev-parse HEAD)" = "$(git rev-list -1 $RAWDESC 2>/dev/null)" ]; then
git diff-index --quiet HEAD -- && DESC=$RAWDESC
fi