Cleanup on bash script exit


```bash function cleanup() { # ... } trap cleanup EXIT ``` [source](https://www.linuxjournal.com/content/bash-trap-command)

Tags:  bash

Share: