aptly_api: need to use double quotes in json string

Should hopefully explain error in package publish step..
This commit is contained in:
Henrik Grimler 2022-03-13 14:34:42 +01:00
parent d9afff3094
commit d0bb3a9273
No known key found for this signature in database
GPG Key ID: B0076E490B71616B

View File

@ -89,7 +89,7 @@ aptly_publish_repo() {
--max-time 300 \ --max-time 300 \
--header 'Content-Type: application/json' \ --header 'Content-Type: application/json' \
--request PUT \ --request PUT \
--data "{'Signing': {'Passphrase': '${GPG_PASSPHRASE}'}}" \ --data "{\"Signing\": {\"Passphrase\": \"${GPG_PASSPHRASE}\"}}" \
${REPOSITORY_URL}/publish/${REPOSITORY_NAME}/${REPOSITORY_DISTRIBUTION} || true ${REPOSITORY_URL}/publish/${REPOSITORY_NAME}/${REPOSITORY_DISTRIBUTION} || true
) )
http_status_code=$(echo "$curl_response" | cut -d'|' -f2 | grep -oP '\d{3}$') http_status_code=$(echo "$curl_response" | cut -d'|' -f2 | grep -oP '\d{3}$')