Skip to content

Commit

Permalink
fix(upload-certs): vol 3
Browse files Browse the repository at this point in the history
  • Loading branch information
sfikastheo committed Jan 2, 2025
1 parent 62e9e9c commit cc503d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/upload-certs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -47,7 +47,7 @@ main() {
-b|--backend)
backend="${1}"; shift ;;
-s|--short)
short=true ;;
short=1 ;;
-*)
echo "Unknown option: ${arg}"
usage; exit 1 ;;
Expand Down Expand Up @@ -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 \
Expand Down

0 comments on commit cc503d7

Please sign in to comment.