Fix comparison

This commit is contained in:
thespad 2024-09-11 20:08:06 +01:00
parent 3fe3f420f6
commit f8f7401a61
No known key found for this signature in database

View File

@ -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 && \