From 60e173bee73e7da414678337eb68704d2677efc5 Mon Sep 17 00:00:00 2001 From: pvincent Date: Thu, 23 Jul 2026 10:58:50 +0400 Subject: [PATCH] trap less signals --- bin/miaou-bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/miaou-bash b/bin/miaou-bash index 3a6b7e4..df2429e 100755 --- a/bin/miaou-bash +++ b/bin/miaou-bash @@ -301,7 +301,8 @@ function cleanup { set -TEue -o pipefail [[ $# -lt 1 ]] && >&2 echo 'ERROR: script expected!' && builtin exit 1 -trap 'on_exit $?' ERR TERM INT EXIT +# trap 'on_exit $?' ERR TERM INT EXIT +trap 'on_exit $?' ERR EXIT trap 'on_return' DEBUG trap 'on_usr1' USR1 BASH_ARGV0="$1" && shift # to pretend script runs by itself