Skip to content

Commit 15c0462

Browse files
committed
Use jq's IN() instead of index()
The end result is the same, but the construction is more ergonomic.
1 parent b733345 commit 15c0462

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dockerfile.debian

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ VOLUME /var/lib/mysql
8787
# Config files
8888
COPY config/ /etc/mysql/
8989
COPY docker-entrypoint.sh /usr/local/bin/
90-
{{ if [ "8.0" ] | index(env.version) then ( -}}
90+
{{ if env.version == "8.0" then ( -}}
9191
RUN ln -s usr/local/bin/docker-entrypoint.sh /entrypoint.sh # backwards compat
9292
{{ ) else "" end -}}
9393
ENTRYPOINT ["docker-entrypoint.sh"]

Dockerfile.oracle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ RUN set -eux; \
132132
VOLUME /var/lib/mysql
133133

134134
COPY docker-entrypoint.sh /usr/local/bin/
135-
{{ if [ "8.0" ] | index(env.version) then ( -}}
135+
{{ if env.version == "8.0" then ( -}}
136136
RUN ln -s usr/local/bin/docker-entrypoint.sh /entrypoint.sh # backwards compat
137137
{{ ) else "" end -}}
138138
ENTRYPOINT ["docker-entrypoint.sh"]

0 commit comments

Comments
 (0)