3 ms·
Useful tip, I suppose it will look like: temp=$(mktemp) trap 'unlink $temp' EXIT # Do things
by lioeters 2y ago
Useful tip, I suppose it will look like:
temp=$(mktemp)
trap 'unlink $temp' EXIT
# Do things
- Galanwe 2y agoExactly. And if your cleanup is more involved you can call a cleanup function.