1
1
mirror of https://github.com/chubin/cheat.sh.git synced 2024-12-04 03:32:05 +03:00
This commit is contained in:
Igor Chubin 2018-08-13 23:03:26 +00:00
commit 0a04055285
2 changed files with 6 additions and 6 deletions

View File

@ -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)

View File

@ -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)