From f5a19098b5365610f79fe395fb0454f194e2c098 Mon Sep 17 00:00:00 2001 From: Girish <79399756+Girish-Anadv-07@users.noreply.github.com> Date: Wed, 25 Oct 2023 01:42:14 -0400 Subject: [PATCH] Update version_update.sh --- version_update.sh | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/version_update.sh b/version_update.sh index 5a3914c6..bb2f0663 100644 --- a/version_update.sh +++ b/version_update.sh @@ -2,18 +2,11 @@ python_file1="version.py" version=$(grep "__version_info__ =" "$python_file1" | sed 's/.*\[\(.*\)\].*/\1/') sed -i -e "1s/s = .*/s = [$version]/" version_update.py -git checkout -b test1 -git add version_update.py -git commit -m "version update" -git push -f origin test1 updated_version=$(python version_update.py) sed -i -e "1s/__version_info__ = .*/__version_info__ = $updated_version/" version.py -git add version.py +git add version.py version_update.py git commit -m "version update" -git push -f origin test1 -git checkout master -git pull origin master -git merge test1 git push -f origin master + rm *.py-e