Skip to content

Commit ae4b392

Browse files
authored
Merge pull request #1091 from docker-library/jq-IN
Use jq's `IN()` instead of `index()`
2 parents b733345 + 15c0462 commit ae4b392

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dockerfile.debian

+1-1
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

+1-1
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)