Hacker News new | ask | show | jobs
by hedora 3027 days ago
You need to invoke the script via ‘sh -ex’ for proper exception handling + debuggability.

Also, mktemp and shell exit traps are your friends.