Skip to content

Commit

Permalink
don't hang on tty (closes holman#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
holman committed Nov 15, 2011
1 parent 8b17457 commit c4fde8a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spark
Expand Up @@ -135,6 +135,13 @@ then
data="$1" data="$1"
else else
data='' data=''

# check to see if stdin's a tty
if [ -t 0 ]; then
help
exit
fi

while read data; do while read data; do
data=$data data=$data
break break
Expand Down

0 comments on commit c4fde8a

Please sign in to comment.