From cc5310e91c341c5d7955ffa6b73560d65c0527bf Mon Sep 17 00:00:00 2001 From: Vadim Zhukov Date: Tue, 14 Aug 2018 01:51:57 +0300 Subject: [PATCH] Fix stealth mode. --- share/cht.sh-posix.txt | 8 ++++---- share/cht.sh.txt | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/share/cht.sh-posix.txt b/share/cht.sh-posix.txt index e5614e3..7ed1b7c 100755 --- a/share/cht.sh-posix.txt +++ b/share/cht.sh-posix.txt @@ -351,8 +351,8 @@ EOF if [ "$input" != stealth ]; then arguments=$(echo "$input" | sed 's/stealth //; s/ /\&/') fi - trap break SIGINT - if [ "$is_macos" == yes ]; then + trap break INT + if [ "$is_macos" = yes ]; then past=$(pbpaste) else past=$(xsel -o) @@ -364,7 +364,7 @@ EOF fi printf "\033[0;31mstealth:\033[0m use ^C to leave this mode\n" while true; do - if [ $is_macos == yes ]; then + if [ "$is_macos" = yes ]; then current=$(pbpaste) else current=$(xsel -o) @@ -383,7 +383,7 @@ EOF fi sleep 1; done - trap - SIGINT + trap - INT continue ;; update) diff --git a/share/cht.sh.txt b/share/cht.sh.txt index b1b99fe..59d69ea 100755 --- a/share/cht.sh.txt +++ b/share/cht.sh.txt @@ -313,7 +313,7 @@ EOF if [ "$input" != stealth ]; then arguments=$(echo "$input" | sed 's/stealth //; s/ /\&/') fi - trap break SIGINT + trap break INT if [ "$is_macos" == yes ]; then past=$(pbpaste) else @@ -345,7 +345,7 @@ EOF fi sleep 1; done - trap - SIGINT + trap - INT continue ;; update)