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

Use jq's `IN()` instead of `index()`
This commit is contained in:
yosifkit 2024-10-16 15:30:10 -07:00 committed by GitHub
commit 0f80628c99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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 -}}