Skip to content

Commit 89b06d4

Browse files
authored
fixed double quotes (#18)
2 parents 1ec4e1e + 8ae5f7a commit 89b06d4

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Yolk/entrypoint.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ run_sbox() {
451451
fi
452452

453453
if [ -n "${resolved_server_name}" ]; then
454-
args+=( +hostname "\"${resolved_server_name}\"" )
454+
args+=( +hostname "${resolved_server_name}" )
455455
fi
456456

457457
unset DOTNET_ROOT DOTNET_ROOT_X86 DOTNET_ROOT_X64
@@ -473,8 +473,9 @@ run_sbox() {
473473
continue
474474
fi
475475
if [[ "$arg" == "+hostname" && $((i+1)) -lt ${#args[@]} ]]; then
476-
# Always log +hostname and its value as a single quoted argument
477-
redacted_args+=( "+hostname \"${args[$((i+1))]}\"" )
476+
# Log +hostname and its value as two separate elements, but quote the value for the log output
477+
redacted_args+=( "+hostname" )
478+
redacted_args+=( "\"${args[$((i+1))]}\"" )
478479
i=$((i+2))
479480
continue
480481
fi

0 commit comments

Comments
 (0)