Skip to content

Commit 95baeb8

Browse files
committed
fixup! fixup! fixup! feat: timeout the postStart hook commands
Signed-off-by: Oleksii Kurinnyi <[email protected]>
1 parent d50e932 commit 95baeb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/library/lifecycle/poststart.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ _WAS_TIMEOUT_USED="false" # Use strings "true" or "false" for shell boolean
119119
120120
if command -v timeout >/dev/null 2>&1; then
121121
echo "[postStart hook] Executing commands with timeout: ${POSTSTART_TIMEOUT_DURATION} seconds, kill after: ${POSTSTART_KILL_AFTER_DURATION} seconds" >&2
122-
_TIMEOUT_COMMAND_PART="timeout --preserve-status --kill-after=\"${POSTSTART_KILL_AFTER_DURATION}\" \"${POSTSTART_TIMEOUT_DURATION}\""
122+
_TIMEOUT_COMMAND_PART="timeout --preserve-status --kill-after=${POSTSTART_KILL_AFTER_DURATION} ${POSTSTART_TIMEOUT_DURATION}"
123123
_WAS_TIMEOUT_USED="true"
124124
else
125125
echo "[postStart hook] WARNING: 'timeout' utility not found. Executing commands without timeout." >&2

0 commit comments

Comments
 (0)