Skip to content

Commit

Permalink
Fix comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
thespad committed Sep 11, 2024
1 parent 3fe3f42 commit f8f7401
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down

0 comments on commit f8f7401

Please sign in to comment.