Avoid removing changelog file until the end
Avoids losing a changelog if something else fails.
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user