mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-19 01:46:10 -04:00
fix: removed +x in condition
This commit is contained in:
+6
-3
@@ -11,10 +11,13 @@ RUN chmod +rwx 'kindlegen'
|
|||||||
RUN rm kindlegen.tar.gz
|
RUN rm kindlegen.tar.gz
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
if [ -z ${MOD_VERSION+x} ]; then \
|
if [ -z ${MOD_VERSION } ]; then \
|
||||||
MOD_VERSION=$(curl -s "https://api.github.com/repos/ciromattia/kcc/releases/latest" \
|
echo "MOD_VERSION is not set. Fetching from GitHub..."; \
|
||||||
| jq -rc ".tag_name"); \
|
MOD_VERSION=$(curl -s "https://api.github.com/repos/ciromattia/kcc/releases/latest" | jq -rc ".tag_name"); \
|
||||||
|
else \
|
||||||
|
echo "MOD_VERSION is already set to '${MOD_VERSION}'"; \
|
||||||
fi && \
|
fi && \
|
||||||
|
echo "Using MOD_VERSION=${MOD_VERSION}" && \
|
||||||
curl -L https://github.com/ciromattia/kcc/archive/refs/tags/${MOD_VERSION}.tar.gz > kcc.tar.gz && \
|
curl -L https://github.com/ciromattia/kcc/archive/refs/tags/${MOD_VERSION}.tar.gz > kcc.tar.gz && \
|
||||||
tar -xzf kcc.tar.gz && \
|
tar -xzf kcc.tar.gz && \
|
||||||
mv kcc-$(echo "${MOD_VERSION}" | sed 's/^.\(.*\)/\1/') kcc && \
|
mv kcc-$(echo "${MOD_VERSION}" | sed 's/^.\(.*\)/\1/') kcc && \
|
||||||
|
|||||||
Reference in New Issue
Block a user