From d0bb3a927332aa6af058bd1837d1773bacb2d0b2 Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Sun, 13 Mar 2022 14:34:42 +0100 Subject: [PATCH] aptly_api: need to use double quotes in json string Should hopefully explain error in package publish step.. --- scripts/aptly_api.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/aptly_api.sh b/scripts/aptly_api.sh index 8085c8113..a8973485a 100644 --- a/scripts/aptly_api.sh +++ b/scripts/aptly_api.sh @@ -89,7 +89,7 @@ aptly_publish_repo() { --max-time 300 \ --header 'Content-Type: application/json' \ --request PUT \ - --data "{'Signing': {'Passphrase': '${GPG_PASSPHRASE}'}}" \ + --data "{\"Signing\": {\"Passphrase\": \"${GPG_PASSPHRASE}\"}}" \ ${REPOSITORY_URL}/publish/${REPOSITORY_NAME}/${REPOSITORY_DISTRIBUTION} || true ) http_status_code=$(echo "$curl_response" | cut -d'|' -f2 | grep -oP '\d{3}$')