Fix trap clanup that also trapped ERR

This commit is contained in:
Clemens Schwaighofer
2025-12-03 13:05:11 +09:00
parent 9e0db8bae9
commit 6023fac636

View File

@@ -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