fix: exit with the error code
All checks were successful
ci/woodpecker/push/woodpecker/1 Pipeline was successful
ci/woodpecker/push/woodpecker/2 Pipeline was successful

This commit is contained in:
f 2024-06-14 18:00:13 -03:00
parent d39cd11605
commit e3bd62e6bd
No known key found for this signature in database

View file

@ -29,9 +29,11 @@ ensure() {
# Remove the lock after synchronization # Remove the lock after synchronization
rm -f "${lock}" rm -f "${lock}"
# Exit with the error code
exit $1
} }
for SIG in TERM QUIT INT HUP; do for SIG in 1 2 3 6 9 14 15; do
trap "ensure ${SIG}" ${SIG} trap "ensure ${SIG}" ${SIG}
done done
@ -113,4 +115,4 @@ case $1 in
done done
esac esac
ensure ensure 0