diff --git a/scripts/native/cicd/hwlab-node-control-plane-refresh.mjs b/scripts/native/cicd/hwlab-node-control-plane-refresh.mjs index 0bc25814..b3d6b088 100644 --- a/scripts/native/cicd/hwlab-node-control-plane-refresh.mjs +++ b/scripts/native/cicd/hwlab-node-control-plane-refresh.mjs @@ -378,7 +378,7 @@ function injectRuntimeGitopsCommands(script) { return String(script).replace( /(node scripts\/run-bun\.mjs scripts\/gitops-render\.mjs[^\n]*--use-deploy-images[^\n]*)/g, (match) => { - if (match.includes("--check")) return `${match}\n${verify}`; + if (match.includes("--check")) return verify; return `${match}\n${postprocess}`; }, ); diff --git a/scripts/native/hwlab/runtime-gitops-pipeline-guard.mjs b/scripts/native/hwlab/runtime-gitops-pipeline-guard.mjs index 3169eb90..77e0372e 100644 --- a/scripts/native/hwlab/runtime-gitops-pipeline-guard.mjs +++ b/scripts/native/hwlab/runtime-gitops-pipeline-guard.mjs @@ -97,7 +97,7 @@ function injectRuntimeGitopsCommands(script) { return String(script).replace( /(node scripts\/run-bun\.mjs scripts\/gitops-render\.mjs[^\n]*--use-deploy-images[^\n]*)/g, (match) => { - if (match.includes("--check")) return hasVerify(script) ? match : `${match}\n${verify}`; + if (match.includes("--check")) return hasVerify(script) ? match : verify; return hasPostprocess(script) ? match : `${match}\n${postprocess}`; }, );