Add sync-skills.sh script
This commit is contained in:
19
sync-skills.sh
Executable file
19
sync-skills.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
# Sync all skill folders from ClawSkills to ~/.openclaw/skills
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
SKILLS_DIR="$HOME/.openclaw/skills"
|
||||
|
||||
mkdir -p "$SKILLS_DIR"
|
||||
|
||||
for folder in "$SCRIPT_DIR"/*/; do
|
||||
folder_name=$(basename "$folder")
|
||||
# Skip this script itself
|
||||
if [[ "$folder_name" == "sync-skills.sh" ]]; then
|
||||
continue
|
||||
fi
|
||||
echo "Copying $folder_name to $SKILLS_DIR..."
|
||||
cp -rf "$folder" "$SKILLS_DIR/"
|
||||
done
|
||||
|
||||
echo "Done!"
|
||||
Reference in New Issue
Block a user