Revision 12735
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/lib/sh/util.sh | ||
---|---|---|
772 | 772 |
|
773 | 773 |
stdout_contains() |
774 | 774 |
# usage: { stderr2stdout cmd|stdout_contains echo_run grep ...; } 41>&1 |
775 |
{ echo_func; pipe_delay; pipe_delay; "$@"|echo_stdout >/dev/null; } |
|
775 |
{ echo_func; pipe_delay; pipe_delay; pipe_delay; "$@"|echo_stdout >/dev/null; }
|
|
776 | 776 |
|
777 | 777 |
stderr_matches() # usage: prep_try; if pattern=... "stderr_matches" cmd...; \ |
778 | 778 |
# then ...; fi; rethrow # manually rethrow any command error (if applicable) |
Also available in: Unified diff
fix: lib/sh/util.sh: stdout_contains(): add another pipe_delay because the `grep` statement was sometimes getting printed before its filtered output