Skip to content

Commit

Permalink
Align entrypoint with what was used for 1.19.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Fedulov authored and mbalassi committed Feb 14, 2025
1 parent b0ed22b commit 610c0de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,19 @@ set_config_options() {
local bin_dir="$FLINK_HOME/bin"
local lib_dir="$FLINK_HOME/lib"

local config_params=""
local config_params=()

while [ $# -gt 0 ]; do
local key="$1"
local value="$2"

config_params+=" -D${key}=${value}"
config_params+=("-D${key}=${value}")

shift 2
done

if [ ! -z "${config_params}" ]; then
eval "${config_parser_script} ${config_dir} ${bin_dir} ${lib_dir} ${config_params}"
if [ "${#config_params[@]}" -gt 0 ]; then
"${config_parser_script}" "${config_dir}" "${bin_dir}" "${lib_dir}" "${config_params[@]}"
fi
}

Expand Down

0 comments on commit 610c0de

Please sign in to comment.