From cbfef738f3af92922856915a84a702b53ae822c9 Mon Sep 17 00:00:00 2001 From: Gondolf <145931259+vGondolf@users.noreply.github.com> Date: Sun, 9 Feb 2025 10:05:57 +0100 Subject: [PATCH] Fixed ShellCheck and shfmt --- deploy/fortigate.sh | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/deploy/fortigate.sh b/deploy/fortigate.sh index 24213a16..6517982c 100644 --- a/deploy/fortigate.sh +++ b/deploy/fortigate.sh @@ -1,7 +1,7 @@ #!/usr/bin/env sh # Script to deploy a certificate to FortiGate via API and set it as the current web GUI certificate. # -# FortiGate's native ACME integration does not support wildcard certificates, +# FortiGate's native ACME integration does not support wildcard certificates, # and is not supported if you have a custom management web port (eg. DNAT web traffic). # # REQUIRED: @@ -32,9 +32,10 @@ parse_response() { # Function to deploy base64-encoded certificate to firewall deployer() { - cert_base64=$(cat "$_cfullchain" | _base64 | tr -d '\n') - key_base64=$(cat "$_ckey" | _base64 | tr -d '\n') - payload=$(cat <