1
1
mirror of https://github.com/chubin/cheat.sh.git synced 2024-12-04 03:32:05 +03:00

Merge pull request #99 from grayed/master

Fix stealth mode
This commit is contained in:
Igor Chubin 2018-08-14 01:02:17 +02:00 committed by GitHub
commit cb9c1e78f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)