Avoid removing changelog file until the end

Avoids losing a changelog if something else fails.
This commit is contained in:
Joshua Boniface 2023-12-01 17:23:43 -05:00
parent 915a84ee3c
commit ad8d8cf7a7
1 changed files with 2 additions and 1 deletions

View File

@ -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