From 73e8867400ac5ad4ee8c06e6940dc73c5e083a98 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Sat, 24 Mar 2018 09:51:25 -0400 Subject: [PATCH] fix version.hpp creation, again --- tools/update-version | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/update-version b/tools/update-version index 7876dd62..f102eec6 100755 --- a/tools/update-version +++ b/tools/update-version @@ -7,7 +7,11 @@ fi VERSION=$(git describe --always --tags --dirty) if [ $? -ne 0 ]; then - exit 0 + VERSION=$(cat VERSION) +fi + +if [ "${VERSION}" = "" ]; then + VERSION="unknown" fi echo -n "${VERSION}" > VERSION