diff --git a/files/acme-downloader.sh b/files/acme-downloader.sh
index 7e3932dc9192c0bc604dfd619a518dbce39f4f74..e26d9b23972cd7d4aa4bd4768a2b833cef9d8f47 100755
--- a/files/acme-downloader.sh
+++ b/files/acme-downloader.sh
@@ -44,11 +44,11 @@ if ! source /etc/os-release &>/dev/null; then
     echo "no idea what to do with this OS: I was not able to access /etc/os-release"
     echo ""
     clean_up
-elif [[ "$ID" == "ubuntu" ]] || [["$ID" == "debian" ]]; then
+elif [[ "$ID" == "ubuntu" ]] || [[ "$ID" == "debian" ]]; then
     CERT_BASE="/etc/ssl/certs"
     KEY_BASE="/etc/ssl/private"
     GROUPNAME="ssl-cert"
-elif [[ "$ID" == "centos" ]] || [["$ID" == "rhel" ]]; then
+elif [[ "$ID" == "centos" ]] || [[ "$ID" == "rhel" ]]; then
     CERT_BASE="/etc/pki/tls/certs"
     KEY_BASE="/etc/pki/tls/private"
     GROUPNAME="root"