]> git.draconx.ca Git - dxcommon.git/commitdiff
exported.sh: Improve error handling.
authorNick Bowler <nbowler@draconx.ca>
Wed, 29 Aug 2012 00:38:53 +0000 (20:38 -0400)
committerNick Bowler <nbowler@draconx.ca>
Wed, 29 Aug 2012 00:38:53 +0000 (20:38 -0400)
Use the eval trick to handle errors from commands in the pipeline other
than the last.  In particular, we now detect if nm failed and return an
error status in this case.  While we're rewriting this code, replace
sort | uniq with sort -u as the latter should be fine according to
POSIX.  We can re-add the two-command version if it actually causes
problems.


No differences found