|
|
@ -301,7 +301,8 @@ function cleanup { |
|
|
set -TEue -o pipefail |
|
|
set -TEue -o pipefail |
|
|
[[ $# -lt 1 ]] && >&2 echo 'ERROR: script expected!' && builtin exit 1 |
|
|
[[ $# -lt 1 ]] && >&2 echo 'ERROR: script expected!' && builtin exit 1 |
|
|
|
|
|
|
|
|
trap 'on_exit $?' ERR TERM INT EXIT |
|
|
|
|
|
|
|
|
# trap 'on_exit $?' ERR TERM INT EXIT |
|
|
|
|
|
trap 'on_exit $?' ERR EXIT |
|
|
trap 'on_return' DEBUG |
|
|
trap 'on_return' DEBUG |
|
|
trap 'on_usr1' USR1 |
|
|
trap 'on_usr1' USR1 |
|
|
BASH_ARGV0="$1" && shift # to pretend script runs by itself |
|
|
BASH_ARGV0="$1" && shift # to pretend script runs by itself |
|
|
|