From f8f7401a61403ef6cc666d694b94c75cb51e9aae Mon Sep 17 00:00:00 2001 From: thespad Date: Wed, 11 Sep 2024 20:08:06 +0100 Subject: [PATCH] Fix comparison --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a883e785..dabf6534 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,11 +6,11 @@ ARG MOD_VERSION RUN \ mkdir -p /root-layer && \ - if [[ -z "${MOD_VERSION}" ]]; then \ + if [ -z "${MOD_VERSION}" ]; then \ MOD_VERSION=$(curl -sX GET "https://api.github.com/repos/crowdsecurity/cs-nginx-bouncer/releases/latest" \ | jq -r '.tag_name'); \ fi && \ - if [[ -z ${MOD_VERSION+x} ]]; then \ + if [ -z ${MOD_VERSION+x} ]; then \ echo "**** Could not fetch current bouncer version from Github ****" \ exit 1; \ fi && \