Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 324 Bytes

bash-check-output.md

File metadata and controls

11 lines (9 loc) · 324 Bytes

bask check output

To check failure output

if { ! git merge upstream/main | tee /dev/stderr | grep -q "Automatic merge failed; fix conflicts" ;} then
    # exit only if its not an automatic merge failure,
    # because we fix up the merge failure with wiggles
    [[ "${PIPESTATUS[2]}" -ne 0 ]] && exit 42
fi