From 58caa0c7a3b58166a7531bfd79e05b71a1c72bc4 Mon Sep 17 00:00:00 2001 From: Hubert Deng Date: Thu, 20 Oct 2022 15:31:55 -0700 Subject: [PATCH] Do not send event on INT signal (#1773) * do not send event on INT signal --- install/error-handling.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install/error-handling.sh b/install/error-handling.sh index 1bfbefa..7b59db1 100644 --- a/install/error-handling.sh +++ b/install/error-handling.sh @@ -176,7 +176,8 @@ cleanup () { fi echo "$traceback" - if [ "$REPORT_SELF_HOSTED_ISSUES" == 1 ]; then + # Only send event when report issues flag is set and if trap signal is not INT (ctrl+c) + if [[ "$REPORT_SELF_HOSTED_ISSUES" == 1 && "$1" != "INT" ]]; then local event_hash=$(echo -n "$cmd_exit $traceback" | docker run -i --rm busybox md5sum | cut -d' ' -f1) send_event "$event_hash" "$cmd_exit" fi