From ed5ffd6c530122668bafd4652c66c5785ff13d1e Mon Sep 17 00:00:00 2001 From: zhi Date: Tue, 3 Mar 2026 18:06:14 +0000 Subject: [PATCH] fix(install): clone function handle undefined - clone(undefined) now returns undefined instead of throwing JSON.parse error - This fixes install when plugins.entries.dirigent doesn't exist yet --- scripts/install-dirigent-openclaw.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/install-dirigent-openclaw.mjs b/scripts/install-dirigent-openclaw.mjs index 25fade3..2623702 100755 --- a/scripts/install-dirigent-openclaw.mjs +++ b/scripts/install-dirigent-openclaw.mjs @@ -122,6 +122,7 @@ function findLatestInstallRecord() { // Deep clone function clone(v) { + if (v === undefined) return undefined; return JSON.parse(JSON.stringify(v)); }