diff --git a/version_update.sh b/version_update.sh index ed378760..49a23eb2 100644 --- a/version_update.sh +++ b/version_update.sh @@ -4,11 +4,11 @@ version=$(grep "__version_info__ =" "$python_file1" | sed 's/.*\[\(.*\)\].*/\1/' sed -i -e "1s/s = .*/s = [$version]/" version_update.py git add version_update.py git commit -m "version update" -git push origin master +git push -f origin master updated_version=$(python version_update.py) sed -i -e "1s/__version_info__ = .*/__version_info__ = $updated_version/" version.py git add version.py git commit -m "version update" -git push origin master -rm *.py-e \ No newline at end of file +git push -f origin master +rm *.py-e