Skip to content

Commit acf2ecb

Browse files
committed
fix: fixing MOD_VERSION bug, tested in dev
1 parent 87da4c2 commit acf2ecb

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

Dockerfile

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,26 @@ RUN tar -zxvf kindlegen.tar.gz kindlegen
1010
RUN chmod +rwx 'kindlegen'
1111
RUN rm kindlegen.tar.gz
1212

13+
14+
RUN \
15+
echo "**** grab transmissionic ****" && \
16+
mkdir -p /root-layer/themes && \
17+
if [ -z ${MOD_VERSION+x} ]; then \
18+
MOD_VERSION=$(curl -s "https://api.github.com/repos/6c65726f79/Transmissionic/releases/latest" \
19+
| jq -rc ".tag_name"); \
20+
fi && \
21+
curl -o \
22+
/tmp/transmissionic.zip -L \
23+
"https://github.com/6c65726f79/Transmissionic/releases/download/${MOD_VERSION}/Transmissionic-webui-${MOD_VERSION}.zip" && \
24+
unzip \
25+
/tmp/transmissionic.zip -d \
26+
/root-layer/themes && \
27+
mv /root-layer/themes/web /root-layer/themes/transmissionic
1328
RUN \
1429
if [ -z ${MOD_VERSION+x} ]; then \
15-
MOD_VERSION=$(curl -s https://api.github.com/repos/ciromattia/kcc/releases/latest | jq -rc ".tag_name"); \
16-
fi; \
30+
MOD_VERSION=$(curl -s "https://api.github.com/repos/ciromattia/kcc/releases/latest" \
31+
| jq -rc ".tag_name"); \
32+
fi && \
1733
curl -L https://github.com/ciromattia/kcc/archive/refs/tags/${MOD_VERSION}.tar.gz > kcc.tar.gz && \
1834
tar -xzf kcc.tar.gz && \
1935
mv kcc-$(echo "${MOD_VERSION}" | sed 's/^.\(.*\)/\1/') kcc && \

0 commit comments

Comments
 (0)