From ad8d8cf7a722e11dc357877a8d1278d419b57a22 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Dec 2023 17:23:43 -0500 Subject: [PATCH] Avoid removing changelog file until the end Avoids losing a changelog if something else fails. --- bump-version | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bump-version b/bump-version index 68b90838..c21cf6f3 100755 --- a/bump-version +++ b/bump-version @@ -17,7 +17,6 @@ echo "# Write the changelog below; comments will be ignored" >> ${changelog_file $EDITOR ${changelog_file} changelog="$( cat ${changelog_file} | grep -v '^#' | sed 's/^*/ */' )" -rm ${changelog_file} sed -i "s,version = \"${current_version}\",version = \"${new_version}\"," node-daemon/pvcnoded/Daemon.py sed -i "s,version = \"${current_version}\",version = \"${new_version}\"," node-daemon/pvchealthd/Daemon.py @@ -53,6 +52,8 @@ git commit -v popd &>/dev/null +rm ${changelog_file} + echo echo "Release message:" echo