summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/release.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/release.sh b/scripts/release.sh
index 9533eb9e..1b5cca45 100755
--- a/scripts/release.sh
+++ b/scripts/release.sh
@@ -7,7 +7,7 @@ function config()
}
SAVED_PWD=$PWD
-version=`head -n1 VERSION`
+version=`grep '\[VERSION_NUMBER], \[.*\]' version.m4 |grep '[0-9]\.[0-9]\.[0-9]' -o`
tag=$(echo ${version} | tr "." "_")
trap "cd $SAVED_PWD; rm -rf sssd-${version} sssd-${version}.tar" EXIT