redsymbol.net exit traps
Code Example - redsymbol.net exit traps
#!/bin/bash
function finish {
# Your cleanup code here
}
trap finish EXIT
#!/bin/bash
function finish {
# Your cleanup code here
}
trap finish EXIT