Skip to content

Commit f5341ad

Browse files
committed
fix: removed +x in condition
1 parent aaa7322 commit f5341ad

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@ RUN chmod +rwx 'kindlegen'
1111
RUN rm kindlegen.tar.gz
1212

1313
RUN \
14-
if [ -z ${MOD_VERSION+x} ]; then \
15-
MOD_VERSION=$(curl -s "https://api.github.com/repos/ciromattia/kcc/releases/latest" \
16-
| jq -rc ".tag_name"); \
14+
if [ -z ${MOD_VERSION } ]; then \
15+
echo "MOD_VERSION is not set. Fetching from GitHub..."; \
16+
MOD_VERSION=$(curl -s "https://api.github.com/repos/ciromattia/kcc/releases/latest" | jq -rc ".tag_name"); \
17+
else \
18+
echo "MOD_VERSION is already set to '${MOD_VERSION}'"; \
1719
fi && \
20+
echo "Using MOD_VERSION=${MOD_VERSION}" && \
1821
curl -L https://github.com/ciromattia/kcc/archive/refs/tags/${MOD_VERSION}.tar.gz > kcc.tar.gz && \
1922
tar -xzf kcc.tar.gz && \
2023
mv kcc-$(echo "${MOD_VERSION}" | sed 's/^.\(.*\)/\1/') kcc && \

0 commit comments

Comments
 (0)