Use jq's `IN()` instead of `index()`
The end result is the same, but the construction is more ergonomic.
This commit is contained in:
parent
a37e929682
commit
5db7a178fd
|
|
@ -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 -}}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue