From c099e8eb277e57d59d861ebf2327ca246f06e132 Mon Sep 17 00:00:00 2001 From: Alex Newman Date: Thu, 12 Feb 2026 12:36:14 -0500 Subject: [PATCH] Update openclaw/install.sh Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- openclaw/install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openclaw/install.sh b/openclaw/install.sh index 6cdf9dc0..a60a80ae 100755 --- a/openclaw/install.sh +++ b/openclaw/install.sh @@ -572,7 +572,8 @@ install_plugin() { cp "${plugin_src}/openclaw.plugin.json" "${installable_dir}/" # Generate the installable package.json with openclaw.extensions field - node -e " + # Generate the installable package.json with openclaw.extensions field + INSTALLER_PACKAGE_DIR="$installable_dir" node -e " const pkg = { name: 'claude-mem', version: '1.0.0', @@ -580,7 +581,7 @@ install_plugin() { main: 'dist/index.js', openclaw: { extensions: ['./dist/index.js'] } }; - require('fs').writeFileSync('${installable_dir}/package.json', JSON.stringify(pkg, null, 2)); + require('fs').writeFileSync(process.env.INSTALLER_PACKAGE_DIR + '/package.json', JSON.stringify(pkg, null, 2)); " # Install the plugin using OpenClaw's CLI