“Exit traps” can make your Bash scripts more robust and reliable (2013)(redsymbol.net)
540 points by ekiauhce | 136 comments
Aaron Maxwell's article explaining how to use bash's EXIT pseudo-signal with trap to ensure cleanup code runs whenever a script exits.






