-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate.sh
More file actions
38 lines (33 loc) · 1.65 KB
/
Copy pathupdate.sh
File metadata and controls
38 lines (33 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env bash
set -euo pipefail
# ============================================================================
# Claude Code Toolkit — Update Script
# Pulls the latest config from the remote repository.
# Usage: bash claude-code-tool-kit/update.sh
# ============================================================================
CONFIG_DIR="$(cd "$(dirname "$0")" && pwd)"
echo ""
echo "╔══════════════════════════════════════════════════════╗"
echo "║ Claude Code Toolkit — Update ║"
echo "║ 30 skills · 8 agents · 9 rules · 30 MCP · 2 hooks ║"
echo "╚══════════════════════════════════════════════════════╝"
echo ""
# Pull latest if this is a git repo
if [ -d "$CONFIG_DIR/.git" ]; then
echo " Pulling latest from remote..."
cd "$CONFIG_DIR"
git pull origin main 2>/dev/null || git pull origin master 2>/dev/null || echo " Warning: Could not pull from remote. Are you offline?"
echo ""
echo " Config updated successfully!"
else
echo " This is not a git repository."
echo " To enable updates, push this config to GitHub and clone it."
fi
echo ""
echo " Next steps:"
echo " 1. Re-run setup.sh on your projects to sync new skills/agents/rules:"
echo " bash $CONFIG_DIR/setup.sh /path/to/your/project"
echo ""
echo " 2. If using as a git submodule, commit the pointer update:"
echo " git add claude-code-tool-kit && git commit -m 'chore: update claude-code-tool-kit'"
echo ""