when creating deposition, script needed to get id from returned json. Was being passed to jq via a tail -1. Fixed now by turning off curls -i swith (no header response) and passing response to jq:
curl -H "Content-Type: application/json" -X POST -d @"$PUB" https://zenodo.org/api/deposit/depositions?access_token="$ACCESS_TOKEN" | tee -a deposition_logs/"$NUM"_deposition.log | jq '.id' >> zenodo_id.txt
when creating deposition, script needed to get id from returned json. Was being passed to jq via a
tail -1
. Fixed now by turning off curls -i swith (no header response) and passing response to jq: