sh/trap/signal-handler (168 bytes)
1 # Handle specific signals gracefully 2 cleanup() { 3 echo "Cleaning up..." >&2 4 <++> 5 exit 1 6 } 7 8 trap cleanup TERM INT QUIT 9 10 # Continue with normal execution 11 <++>
git clone https://github.com/equwal/tmpl