A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy injectors to reality checkers. Each agent is a specialized expert with personality, processes, and proven deliverables.
Shell
fix(openclaw): one failed registration no longer costs the others
Michael Sitarzewski23d0a68d7bd1
diff --git a/scripts/install.sh b/scripts/install.shindex f6ad61f9..f8ccb7fa 100755--- a/scripts/install.sh+++ b/scripts/install.sh@@ -954,6 +954,7 @@ install_openclaw() {local dest; dest="$(resolve_dest openclaw "${HOME}/.openclaw/agency-agents")"local count=0local existing_agents=""+ local failed_names="" # a string, not an array: bash 3.2 + set -u rejects "${empty[@]}"[[ -d "$src" ]] || { err "integrations/openclaw missing. Run convert.sh first."; return 1; }mkdir -p "$dest"if command -v openclaw >/dev/null 2>&1; then@@ -980,7 +981,9 @@ install_openclaw() {if [[ "$existing_agents" != *$'\n'"$name"$'\n'* ]]; thenif ! openclaw agents add "$name" --workspace "$dest/$name" --non-interactive; thenerr "OpenClaw: failed to register '$name'; the copied workspace is not active."- return 1+ # Keep registering the rest: one bad registration must not cost the others.+ failed_names="${failed_names:+$failed_names }$name"+ continuefififi@@ -994,6 +997,10 @@ install_openclaw() {if command -v openclaw >/dev/null 2>&1; thenwarn "OpenClaw: run 'openclaw gateway restart' to activate new agents"fi+ if [[ -n "$failed_names" ]]; then+ err "OpenClaw: not registered: $failed_names. Their workspaces are copied; re-run to retry registration."+ return 1+ fi}install_cursor() {