atexit.sh 374 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14

# LECA Bash library
#
# The LECA bash library provides a set of function used for helping
# development of bash script mainly to write job script on the luke
# cluster
#
# The files from the LECA Bash library must be sourced from your main script
#
#

include logging
logdebug "Load atexit package"

15
include signal
16 17

function registeratexit() {
18
	registertrap EXIT "${*}"
19 20
}