Daily Shaarli

All links of one day in a single page.

June 21, 2023

How "Exit Traps" Can Make Your Bash Scripts Way More Robust And Reliable

Bash tip: put cleanup code in a function called finish and register it with trap finish EXIT.