Commit 1f59d04a authored by Vitaly Lipatov's avatar Vitaly Lipatov

release_commit.sh: fix version checking

parent 5ffb29a4
......@@ -21,8 +21,9 @@ fi
SPECNAME=eepm.spec
version="$(get_version $SPECNAME)"
baseversion=$(echo "$version" | sed -e 's|\.[0-9]*$||')
minorversion=$(echo "$baseversion" | sed -e 's|.*\.||')
[ $((version%2)) = 1 ] && version="$version-beta"
[ "$((minorversion%2))" = 1 ] && version="$version-beta"
./pack_in_onefile.sh || exit
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment