From 801a447f6013f246a5f1243867c382c809b2ad06 Mon Sep 17 00:00:00 2001 From: Nikola Jokic Date: Mon, 8 Dec 2025 12:50:34 +0100 Subject: [PATCH] Update packages/k8s/src/hooks/run-script-step.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- packages/k8s/src/hooks/run-script-step.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/k8s/src/hooks/run-script-step.ts b/packages/k8s/src/hooks/run-script-step.ts index 75c5864..88575a2 100644 --- a/packages/k8s/src/hooks/run-script-step.ts +++ b/packages/k8s/src/hooks/run-script-step.ts @@ -50,7 +50,7 @@ export async function runScriptStep( // Overwrite _runner_file_commands '[ -d "$SRC/_runner_file_commands" ] && mkdir -p "$DST/_runner_file_commands" && cp -a "$SRC/_runner_file_commands/." "$DST/_runner_file_commands/" || true', // Append other files if missing - 'find "$SRC" -type f ! -path "*/_runner_file_commands/*" | while read -r f; do rel=${f#"$SRC/"}; target="$DST/$rel"; dir=$(dirname "$target"); if [ ! -e "$target" ]; then mkdir -p "$dir"; cp -a "$f" "$target"; fi; done', + 'find "$SRC" -type f ! -path "*/_runner_file_commands/*" -exec sh -c '\''rel="${1#$2/}"; target="$3/$rel"; dir=$(dirname "$target"); if [ ! -e "$target" ]; then mkdir -p "$dir" && cp -a "$1" "$target"; fi'\'' _ {} "$SRC" "$DST" \;', // Remove _temp_pre after merging 'rm -rf /__w/_temp_pre' ]