@pwddd/skills-scanner 1.0.0-beta.15 → 1.0.0-beta.16
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 -2
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
package/src/cron-manager.ts
CHANGED
|
@@ -84,9 +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
|
-
//
|
|
87
|
+
// Escape $(...) and $variables once: \\$ in JS → \$ in string → $ in crontab
|
|
88
88
|
const openclawCmd = getOpenClawCommand();
|
|
89
|
-
const cleanupCmd = `for id in \\$(${openclawCmd} cron list | grep skills-weekly-report | awk '{print
|
|
89
|
+
const cleanupCmd = `for id in \\$(${openclawCmd} cron list | grep skills-weekly-report | awk '{print \\$1}'); do ${openclawCmd} cron remove \\$id; done`;
|
|
90
90
|
|
|
91
91
|
// Add new crontab entry (comment on separate line)
|
|
92
92
|
const newCrontabEntry = `${cleanupMarker}\n0 3 * * * ${cleanupCmd}`;
|