diff --git a/workflow/postshow.bash b/workflow/postshow.bash index 6a6b65c..6dc7c96 100755 --- a/workflow/postshow.bash +++ b/workflow/postshow.bash @@ -81,8 +81,9 @@ then exit 5 fi +mv -v "${shownotes_json}" "${shownotes_json%.*}_origional.json" -jq '.' "${shownotes_json}" | sponge "${shownotes_json}" +jq '.' "${shownotes_json%.*}_origional.json" > "${shownotes_json}" ################### # Get the media @@ -298,4 +299,10 @@ echo "{ \"notes\": \"${notes}\" }" | tee "${post_show_json}" +echo "INFO: Uploading hpr${ep_num} from ${email_unpadded}" +echo "" +echo rsync -ave ssh --partial --progress ${processing_dir}/${dest_dir}/ ${source_dir}/ +rsync -ave ssh --partial --progress ${processing_dir}/${dest_dir}/ ${source_dir}/ +echo "" + curl --netrc --include --request POST "https://hub.hackerpublicradio.org/cms/add_show_json.php" --header "Content-Type: application/json" --data-binary "@${post_show_json}"