bench ed962b11cc Agent commands: say when an earlier pipeline step failed
Pi's bash tool (shellPath), bench dev and the board terminal run commands with
pipe-note.sh: the exit code stays the last step's (no pipefail, so | head is
still 0), and a failed earlier step of the final pipeline gets one stderr line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 16:52:42 +08:00

7 lines
411 B
Bash
Executable File

#!/bin/bash
# Pi's bash tool runs commands through this (settings shellPath); bench dev and the board terminal prepend the
# same pipe-note.sh. Exit code is unchanged (no pipefail: `| head` stays 0); when an earlier step of the final
# pipeline failed, one line on stderr says so. 141 = the reader closed the pipe early, which is normal.
[ "$1" = -c ] && shift
exec /bin/bash -c "$(<"${0%/*}/pipe-note.sh") $1"