We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 559ff64 commit 6843a8bCopy full SHA for 6843a8b
1 file changed
pkg/docker/entrypoint.sh
@@ -54,12 +54,9 @@ DEFAULT_BINARY_PATHS = {
54
}
55
EOF
56
57
- # This is a bit kludgy, but necessary as the container uses BusyBox/ash as
58
- # it's shell and not bash which would allow a much cleaner implementation
59
- for var in $(env | grep "^PGADMIN_CONFIG_" | cut -d "=" -f 1); do
60
- # shellcheck disable=SC2086
61
- # shellcheck disable=SC2046
62
- echo ${var#PGADMIN_CONFIG_} = $(eval "echo \$$var") >> "${CONFIG_DISTRO_FILE_PATH}"
+ # Iterate over PGADMIN_CONFIG_* environment variables and writes them to the config file
+ for var in "${!PGADMIN_CONFIG_@}"; do
+ echo "${var#PGADMIN_CONFIG_} = ${!var}" >> "${CONFIG_DISTRO_FILE_PATH}"
63
done
64
fi
65
0 commit comments