cd $OLDPWD "$(dirname "${BASH_SOURCE}")"

version=`sh version.sh`

PREV_VERSION=$1

git add ./../pubspec.yaml &&
git commit -m  "Bump version" &&
git tag "v$version" &&
git push ${SERVER_ALIAS} ${CURRENT_BRANCH} --tags &&
echo "\nDone v$PREV_VERSION => v$version." &&
exit 1

cd $OLDPWD "$(dirname "${BASH_SOURCE}")"

version=`sh version.sh`

PREV_VERSION=$1

git add ./../pubspec.yaml &&
git commit -m  "Bump version" &&
git tag "v$version" &&
git push origin ${CURRENT_BRANCH} --tags &&
echo "\nDone v$PREV_VERSION => v$version." &&
exit 1

Fix push version bash script
Fix push version bash script
