Page MenuHomeFreeBSD

Add set pipefail in most framework scripts.
ClosedPublic

Authored by mat on Oct 29 2020, 3:00 PM.
Tags
None
Referenced Files
F103266595: D27007.diff
Fri, Nov 22, 8:26 PM
Unknown Object (File)
Fri, Nov 22, 3:55 AM
Unknown Object (File)
Wed, Nov 20, 7:12 PM
Unknown Object (File)
Wed, Nov 20, 1:35 PM
Unknown Object (File)
Wed, Nov 13, 6:23 AM
Unknown Object (File)
Tue, Nov 12, 12:07 PM
Unknown Object (File)
Sat, Nov 9, 1:47 PM
Unknown Object (File)
Wed, Nov 6, 11:33 PM
Subscribers
None

Details

Summary

set pipefail changes the pipeline return status from being the return
status of the last command to the last non 0 exit status of any command
in the pipeline. This is needed to make sure all the commands in a
pipeline did actually return a non 0 status and not only the last one.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

mat requested review of this revision.Oct 29 2020, 3:00 PM
mat created this revision.
This revision is now accepted and ready to land.Oct 29 2020, 3:07 PM
  • fixup! Add set pipefail in most framework scripts.
This revision now requires review to proceed.Nov 2 2020, 8:31 AM
  • Ignore grep return value.
This revision was not accepted when it landed; it landed in state Needs Review.Nov 11 2020, 1:30 PM
This revision was automatically updated to reflect the committed changes.