Github user mattf-horton commented on the issue:

    https://github.com/apache/incubator-metron/pull/455
  
    I've tested it to completion on both Centos 6 and 7.  It works and 
generates identical src and site file trees.  I also tested the trap on SIGINT, 
which worked on all three platforms.  I tested the trap on ERR but only on Mac.
    
    @JonZeolla , the 'rm -f outfile' before 'blah 2> outfile' may be 
unnecessary.  I did so on the premise that the file might pre-exist and be 
readonly.  In that case, I'm not sure whether the '>' operator deletes the 
file, or attempts to rewrite it; the former would succeed, the latter would 
fail.  Whereas the 'rm -f' is guaranteed to succeed, because we earlier tested 
the parent directory for write privs.
    
    At any rate, as you observed, it is at worst unnecessary but harmless.  
Thanks for the +1.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to