Cleanup on bash script exit


function cleanup()
{
    # ...
}

trap cleanup EXIT

source

Date: 2019-11-04

Tags:  bash

Share: