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