Skip to content
Snippets Groups Projects
Unverified Commit 0f80628c authored by yosifkit's avatar yosifkit Committed by GitHub
Browse files

Merge pull request #1280 from docker-library/jq-IN

Use jq's `IN()` instead of `index()`
parents a37e9296 5db7a178
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ RUN set -eux; \
# verify that the binary works
gosu --version; \
gosu nobody true
{{ if [ "12", "13", "14", "15", "16" ] | index(env.version) then ( -}}
{{ if env.version | IN("12", "13", "14", "15", "16") then ( -}}
RUN set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+)
{{ ) else "" end -}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment