Project

General

Profile

« Previous | Next » 

Revision 12765

fix: lib/sh/util.sh: stderr_matches(): usage: `rethrow` must be called right after stderr_matches(), to avoid calling running other commands if there is an error

View differences:

util.sh
780 780
{ echo_func; pipe_delay; pipe_delay; pipe_delay; "$@"|echo_stdout >/dev/null; }
781 781

  
782 782
stderr_matches() # usage: prep_try; if pattern=... [ignore_e=#] \
783
# "stderr_matches" cmd...; then ...; fi; rethrow # rethrow any command error
783
# stderr_matches cmd...; then rethrow; ...; fi; rethrow # rethrow other errors
784 784
# exit status of cmd is placed in $e for use with exception handling
785 785
{
786 786
	echo_func; kw_params pattern ignore_e; : "${pattern?}"

Also available in: Unified diff