Revert "fix: capture init script exit codes instead of swallowing via pipe"

This reverts commit 8b14052ebe.
This commit is contained in:
Gustavo Madeira Santana
2026-02-16 20:23:40 -05:00
parent 83392d3927
commit 09c82a1fbf

View File

@@ -18,8 +18,7 @@ if [ -d "$INIT_DIR" ] && [ "$(ls -A "$INIT_DIR" 2>/dev/null)" ]; then
[ -f "$script" ] || continue
if [ -x "$script" ]; then
echo "[openclaw-init] Running $(basename "$script")..."
output=$("$script" 2>&1) || echo "[openclaw-init] WARNING: $(basename "$script") exited with status $?"
[ -n "$output" ] && printf '%s\n' "$output" | sed 's/^/ /'
"$script" 2>&1 | sed "s/^/ /"
else
echo "[openclaw-init] Skipping $(basename "$script") (not executable)"
fi