openclaw: let stderr through on agents add failure

This commit is contained in:
Pip 2026-03-10 18:54:15 -05:00
parent 6c78886ec9
commit 27afa03c64

View File

@ -360,7 +360,7 @@ install_openclaw() {
cp "$d/IDENTITY.md" "$dest/$name/IDENTITY.md"
# Register with OpenClaw so agents are usable by agentId immediately
if command -v openclaw >/dev/null 2>&1; then
openclaw agents add "$name" --workspace "$dest/$name" --non-interactive 2>/dev/null || true
openclaw agents add "$name" --workspace "$dest/$name" --non-interactive || true
fi
(( count++ )) || true
done < <(find "$src" -mindepth 1 -maxdepth 1 -type d -print0)