Ensure all helper scripts pushd/popd

Make sure all of these move to the root of the repository first, then
return to where they were afterwards, using pushd/popd. This allows them
to be executed from anywhere in the repo.
This commit is contained in:
2021-11-06 03:16:02 -04:00
parent b9c30baf80
commit ac885b855a
8 changed files with 29 additions and 4 deletions

View File

@ -7,6 +7,8 @@ if [[ -z ${new_version} ]]; then
exit 1
fi
pushd $( git rev-parse --show-toplevel ) &>/dev/null
current_version="$( cat .version )"
echo "${current_version} -> ${new_version}"
@ -47,6 +49,8 @@ mv ${deb_changelog_file} debian/changelog
git add node-daemon/pvcnoded/Daemon.py api-daemon/pvcapid/Daemon.py client-cli/setup.py debian/changelog CHANGELOG.md .version
git commit -v
popd &>/dev/null
echo
echo "GitLab release message:"
echo