1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02: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
2 changed files with 6 additions and 6 deletions
+4 -4
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)
+2 -2
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)