File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,13 @@ RUN chmod +rwx 'kindlegen'
1111RUN rm kindlegen.tar.gz
1212
1313RUN \
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 && \
You can’t perform that action at this time.
0 commit comments