mirror of
https://github.com/linuxserver/docker-mods.git
synced 2026-03-23 00:05:28 +08:00
Fix comparison
This commit is contained in:
parent
3fe3f420f6
commit
f8f7401a61
@ -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 && \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user