- echo "$commit_header" > $commit_msg_temp_file
- echo "" >> $commit_msg_temp_file
- echo "*** This commit is generated by a PF release script ***" >> $commit_msg_temp_file
- echo "" >> $commit_msg_temp_file
- echo "$commit_message" >> $commit_msg_temp_file
- echo "" >> $commit_msg_temp_file
- echo "Issue-ID: $issue_id" >> $commit_msg_temp_file
-
- git -C $repo_location/$specified_repo add .
- git -C $repo_location/$specified_repo commit -s -F "$commit_msg_temp_file"
- rm $commit_msg_temp_file
+ {
+ echo "$commit_header"
+ echo ""
+ echo "$commit_message"
+ echo ""
+ echo "*** This commit is generated by a PF release script ***"
+ echo ""
+ echo "Issue-ID: $issue_id"
+ } > "$commit_msg_temp_file"
+
+ git -C "$repo_location/$specified_repo" add .
+ git -C "$repo_location/$specified_repo" commit -s -F "$commit_msg_temp_file"
+ rm "$commit_msg_temp_file"