From 298d6256295054a8907c1255405ae0f4c547404a Mon Sep 17 00:00:00 2001 From: luvs01 Date: Sat, 15 Aug 2026 11:39:52 +0900 Subject: [PATCH] fix(scripts): run ocx-run commands in workdir --- scripts/ocx-run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ocx-run b/scripts/ocx-run index 81ba24b705..0aaa902079 100755 --- a/scripts/ocx-run +++ b/scripts/ocx-run @@ -125,7 +125,7 @@ echo "started=$(date -Is) name=$name limit=$limit cmd=$*" > "$status" # setsid gives the job its own process group so a timeout kills the children too; # --kill-after upgrades to SIGKILL for a process that ignores SIGTERM. -setsid timeout --signal=TERM --kill-after=60s "$limit" "$@" > "$log" 2>&1 & +(cd "$workdir" && exec setsid timeout --signal=TERM --kill-after=60s "$limit" "$@") > "$log" 2>&1 & job=$! echo "$job" > "$pidf"