Open vay3t opened 3 years ago
function exit_trap() { local lc="$BASH_COMMAND" rc=$? echo "Command [$lc] exited with code [$rc]" } trap exit_trap err
debug script with trap