git clone https://github.com/equwal/tmpl
Log | Files | Refs
sh/trap/cleanup-temp (116 bytes)
1 # Clean up temporary files on exit 2 tmpfile=$(mktemp) 3 trap 'rm -f "$tmpfile"' EXIT 4 5 # Use $tmpfile for your work 6 <++>