@pwddd/skills-scanner 1.0.0-beta.13 → 1.0.0-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/src/cron-manager.ts +2 -1
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
package/src/cron-manager.ts
CHANGED
|
@@ -84,8 +84,9 @@ export async function ensureCronJob(options: CronManagerOptions): Promise<void>
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
// Create cleanup command - remove ALL skills-weekly-report jobs
|
|
87
|
+
// Note: Need to escape $(...) and $variables to prevent premature shell expansion
|
|
87
88
|
const openclawCmd = getOpenClawCommand();
|
|
88
|
-
const cleanupCmd = `for id in
|
|
89
|
+
const cleanupCmd = `for id in \\$(${openclawCmd} cron list | grep skills-weekly-report | awk '{print \\\\$1}'); do ${openclawCmd} cron remove \\\\$id; done`;
|
|
89
90
|
|
|
90
91
|
// Add new crontab entry (comment on separate line)
|
|
91
92
|
const newCrontabEntry = `${cleanupMarker}\n0 3 * * * ${cleanupCmd}`;
|