From e3e458b2d29a2f9107d643de52970911ea118692 Mon Sep 17 00:00:00 2001 From: Ken Fallon Date: Fri, 27 Dec 2024 14:01:20 +0100 Subject: [PATCH] Submit processed files back to upload directory --- workflow/postshow.bash | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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}"