20 lines
482 B
Bash
Executable File
20 lines
482 B
Bash
Executable File
#!/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!"
|