Business operating system for Claude Code — 57 skills, 21 agents, smart daemon. Unified inbox (WhatsApp/Email/Slack/Telegram), autonomous PR merge, full-AWS monitoring, revenue (Stripe+RevenueCat), e-commerce (Shopify), marketing (Klaviyo/Meta/GA4), voice (Bland/ElevenLabs), APM (Datadog/NewRelic/OTEL), YOLO mode.
Shell agent-teamsai-agentai-automationanthropicautonomous-agentawsbusiness-operationsclaudeclaude-codeclaude-code-plugindevopsecommerceinbox-zeroklaviyomarketingmcpmorning-briefingpr-automationshopifyterminal
fix(ops-post-update-migrate): remove dangling symlink before refreshing current/ (#744)
Aurora Capital6113588b598b
diff --git a/claude-ops/bin/ops-post-update-migrate b/claude-ops/bin/ops-post-update-migrateindex 93d323ca..8b0fbdd4 100755--- a/claude-ops/bin/ops-post-update-migrate+++ b/claude-ops/bin/ops-post-update-migrate@@ -43,6 +43,18 @@ refresh_current_directory() {cache_parent="$(dirname "$PLUGIN_ROOT")"current_dir="$cache_parent/current"installed_json="$PLUGINS_DIR/installed_plugins.json"++ # current/ must be a real rsynced directory, not a symlink. A legacy or+ # dangling symlink (e.g. left pointing at a version pruned by ops-update+ # step 5 before this migration runs) makes rsync's directory-destination+ # write fail silently, leaving current/ broken for every consumer that+ # resolves the plugin through it. Clear it so rsync always (re)creates a+ # real directory below.+ if [[ -L "$current_dir" ]]; then+ rm -f "$current_dir"+ log " info: removed symlink at $current_dir (current/ must be a real directory)"+ fi+root_real="$(cd "$PLUGIN_ROOT" 2>/dev/null && pwd -P || echo "$PLUGIN_ROOT")"current_real="$(cd "$current_dir" 2>/dev/null && pwd -P || echo "$current_dir")"