From cc503d7086477d0da4678089cffcb6fb0d1a4090 Mon Sep 17 00:00:00 2001 From: sfikastheo Date: Thu, 2 Jan 2025 18:33:35 +0200 Subject: [PATCH] fix(upload-certs): vol 3 --- scripts/upload-certs.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/upload-certs.sh b/scripts/upload-certs.sh index 6bbaffac..4d14bedc 100755 --- a/scripts/upload-certs.sh +++ b/scripts/upload-certs.sh @@ -35,7 +35,7 @@ main() { local bearer="${FM_CLI_ORB_AUTH_INTERNAL_TOKEN:-""}" local backend="${FM_CLI_ENV:-""}" local positional_args=() - local short=false + local short=0 local arg while [[ "$#" -gt 0 ]]; do arg="${1}"; shift @@ -47,7 +47,7 @@ main() { -b|--backend) backend="${1}"; shift ;; -s|--short) - short=true ;; + short=1 ;; -*) echo "Unknown option: ${arg}" usage; exit 1 ;; @@ -102,7 +102,7 @@ main() { cf_token="$(get_cloudflared_token "${domain}")" # Post attestation certificate - if [[ ! "${short}" ]]; then + if [[ ${short} -eq 0 ]]; then local certificate certificate=$(sed 's/$/\\n/' "${keypath}/f0000013.cert" | tr -d \\n) curl --fail --location \