*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit c98b80de authored by Moser, Maximilian's avatar Moser, Maximilian
Browse files

Use the "raw-output" flag for jq to get rid of surrounding quotation

parent 251daa1b
No related branches found
No related tags found
1 merge request!19Some cleanup
...@@ -108,9 +108,7 @@ recids=() ...@@ -108,9 +108,7 @@ recids=()
# upload the collected records with files # upload the collected records with files
for record in ${record_dirs[@]}; do for record in ${record_dirs[@]}; do
# create a new draft, with the specified metadata # create a new draft, with the specified metadata
recid=$(curl -sk -X POST -H "${json_header}" -H "${auth_header}" -d @${record}/metadata.json ${base_url}/api/records | jq ".id") recid=$(curl -sk -X POST -H "${json_header}" -H "${auth_header}" -d @${record}/metadata.json ${base_url}/api/records | jq -r ".id")
recid=${recid%\"}
recid=${recid#\"}
recids+=( ${recid} ) recids+=( ${recid} )
files=() files=()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment