summaryrefslogtreecommitdiff
path: root/scripts/make-dist.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/make-dist.sh')
-rwxr-xr-xscripts/make-dist.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/make-dist.sh b/scripts/make-dist.sh
index 974bfc5dd..67578e504 100755
--- a/scripts/make-dist.sh
+++ b/scripts/make-dist.sh
@@ -17,9 +17,9 @@ if [ ! -d ./.git ]; then
fi
git submodule update --init ./libnDPI
-NDPID_GIT_VERSION="$(git describe --tags)"
+NDPID_GIT_VERSION="$(git describe --tags || printf '%s' 'unknown')"
cd ./libnDPI && \
- LIBNDPI_GIT_VERSION="$(git describe --tags)" && \
+ LIBNDPI_GIT_VERSION="$(git describe --tags || printf '%s' 'unknown')" && \
printf '%s\n' "Creating $(realpath ./libnDPI-${LIBNDPI_GIT_VERSION}.tar)" && \
git archive --prefix="nDPId-${NDPID_GIT_VERSION}/libnDPI/" -o "../libnDPI-${LIBNDPI_GIT_VERSION}.tar" HEAD && \
cd ..