Fix trap clanup that also trapped ERR
This commit is contained in:
@@ -6,8 +6,8 @@ if [ -z "${MODULE}" ]; then
|
||||
fi;
|
||||
|
||||
set -ETu #-e -o pipefail
|
||||
trap cleanup SIGINT SIGTERM ERR
|
||||
trap error_trap ERR
|
||||
trap cleanup SIGINT SIGTERM
|
||||
|
||||
cleanup() {
|
||||
# script cleanup here
|
||||
|
||||
Reference in New Issue
Block a user