From 24e690b995a4158b61284be2bfa2b174c57330b6 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Fri, 16 Mar 2018 23:26:29 -0400 Subject: [PATCH] fix versioning with tarball building --- tools/update-version | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/update-version b/tools/update-version index fef0f950..7876dd62 100755 --- a/tools/update-version +++ b/tools/update-version @@ -6,6 +6,9 @@ if [ "${GIT}" = "" ]; then fi VERSION=$(git describe --always --tags --dirty) +if [ $? -ne 0 ]; then + exit 0 +fi echo -n "${VERSION}" > VERSION grep -q \"${VERSION}\" src/version.hpp