Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Quick fix to error
Browse files Browse the repository at this point in the history
quick fix to
read: -N: invalid option
  • Loading branch information
tcyrus committed Nov 25, 2014
1 parent 8c0a43b commit 2e8d7d2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions hackertyper.sh
Expand Up @@ -10,7 +10,7 @@ help() {
-s "succeed at hacking"
-g "be green"
-h "show this help..."
Example: -l 20 -q 10 -f -g
each keypress will output 20 characters
this continues 10 times (10 keypresses before it ends)
Expand All @@ -36,7 +36,7 @@ while getopts "q:l:fshg" opt "$@"; do
;;
s)
hack=1
;;
;;
g)
echo -e "\033[00;32m"
;;
Expand Down Expand Up @@ -349,13 +349,13 @@ ENDOFSTUFF`
start=0
length=$((`echo "$text" | wc -c` / ${len:=4}))
for (( go = 1 ; go <= ${stopat:=length} ; go++ ))
for (( go = 1 ; go <= ${stopat:=length} ; go++ ))
do echo -n "${text:$start:${len:=4}}"
(( start = start + ${len:=4} ))
read -sN 1 inpoot
if [ "$inpoot" == '`' ]; then
read -sn 1 inpoot
if [ "$inpoot" == '`' ]; then
end
else
else
continue
fi
done
Expand Down

0 comments on commit 2e8d7d2

Please sign in to comment.