mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-18 08:48:27 -04:00
Fix comparison
This commit is contained in:
+2
-2
@@ -6,11 +6,11 @@ ARG MOD_VERSION
|
|||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
mkdir -p /root-layer && \
|
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" \
|
MOD_VERSION=$(curl -sX GET "https://api.github.com/repos/crowdsecurity/cs-nginx-bouncer/releases/latest" \
|
||||||
| jq -r '.tag_name'); \
|
| jq -r '.tag_name'); \
|
||||||
fi && \
|
fi && \
|
||||||
if [[ -z ${MOD_VERSION+x} ]]; then \
|
if [ -z ${MOD_VERSION+x} ]; then \
|
||||||
echo "**** Could not fetch current bouncer version from Github ****" \
|
echo "**** Could not fetch current bouncer version from Github ****" \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi && \
|
fi && \
|
||||||
|
|||||||
Reference in New Issue
Block a user