plazi / drosophilid-data

Repository for cleanup, enhancement, and preparation of Drosophlid data
0 stars 0 forks source link

multi line json in response causing failure of upload script #8

Closed tcatapano closed 7 years ago

tcatapano commented 7 years ago

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
tcatapano commented 7 years ago

fixed. closing