Merge pull request #102 from YunoHost/disable-trap-SIGINT-in-cleanup

disable trap SIGINT in cleanup
This commit is contained in:
Alexandre Aubin 2021-03-03 01:16:33 +01:00 committed by GitHub
commit 4ae15efd2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -123,6 +123,7 @@ parse_args
function cleanup() function cleanup()
{ {
trap '' SIGINT # Disable ctrl+c in this function
LXC_RESET LXC_RESET
[ -n "$TEST_CONTEXT" ] && rm -rf "$TEST_CONTEXT" [ -n "$TEST_CONTEXT" ] && rm -rf "$TEST_CONTEXT"