summaryrefslogtreecommitdiffstats
path: root/packaging/makeself/jobs/99-makeself.install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/makeself/jobs/99-makeself.install.sh')
-rwxr-xr-xpackaging/makeself/jobs/99-makeself.install.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/packaging/makeself/jobs/99-makeself.install.sh b/packaging/makeself/jobs/99-makeself.install.sh
index 9dfcfbed7..d29d0580a 100755
--- a/packaging/makeself/jobs/99-makeself.install.sh
+++ b/packaging/makeself/jobs/99-makeself.install.sh
@@ -12,10 +12,7 @@ run cd "${NETDATA_SOURCE_PATH}" || exit 1
# -----------------------------------------------------------------------------
# find the netdata version
-VERSION="$(git describe 2> /dev/null)"
-if [ -z "${VERSION}" ]; then
- VERSION=$(cat packaging/version)
-fi
+VERSION="$("${NETDATA_INSTALL_PARENT}/netdata/bin/netdata" -v | cut -f 2 -d ' ')"
if [ "${VERSION}" == "" ]; then
echo >&2 "Cannot find version number. Create makeself executable from source code with git tree structure."