From 580b6b57b63a2648bf1d50f5ee41226ac109f5c7 Mon Sep 17 00:00:00 2001 From: Franz Schwartau Date: Sun, 17 Sep 2023 10:31:46 +0200 Subject: [PATCH] Remove trailing slash from baseurl --- fritzbox_upload_certificate.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fritzbox_upload_certificate.sh b/fritzbox_upload_certificate.sh index df14000..7de3934 100755 --- a/fritzbox_upload_certificate.sh +++ b/fritzbox_upload_certificate.sh @@ -111,6 +111,9 @@ done [ ${exit} -ne 0 ] && exit ${exit} +# strip trailing slash +baseurl="${baseurl%/}" + fullchain="${certpath}/fullchain.pem" privkey="${certpath}/privkey.pem"