Skip to content
Snippets Groups Projects
Commit d4f73afc authored by Vincent Texier's avatar Vincent Texier
Browse files

[fix] fix release.sh unable to set 1.0.0-rc version

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