Skip to content
Snippets Groups Projects
Commit 96ce1926 authored by inso's avatar inso
Browse files

Fix release script

parent f8b38407
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
current=`grep -P "__version__ = \'\d+.\d+.\d+(\w*)\'" duniterpy/__init__.py | grep -oP "\d+.\d+.\d+(\w*)"`
echo "Current version: $current"
if [[ $1 =~ ^[0-9]+.[0-9]+.[0-9]+[0-9a-z]+$ ]]; then
if [[ $1 =~ ^[0-9]+.[0-9]+.[0-9]+[0-9a-z]*$ ]]; then
sed -i "s/__version__ = '$current'/__version__ = '$1'/g" duniterpy/__init__.py
git commit duniterpy/__init__.py -m "$1"
git tag "$1" -a -m "$1"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment