sd_return_first_non_zero
analyze the return of a piped command
Module:
Component:
Distribution:
Synopsis
sd_return_first_non_zero PIPESTATUS
Used in combiantion with PIPESTATUS bash variable
Exit status
Returns firs non zero value in the arguments
Availability
Since SDaaS 4
Examples
cmd1 | cmd3 | cmd3
sd_return_first_non_zero "${PIPESTATUS[@]}"
Last modified March 24, 2024: updated (b0e712e)