Skip to content
Browse files

don't hang on tty (closes #1)

  • Loading branch information...
1 parent 8b17457 commit c4fde8aacc0f464417284ace97b2e74e3ef3c9cc @holman holman committed
Showing with 7 additions and 0 deletions.
  1. +7 −0 spark
View
7 spark
@@ -135,6 +135,13 @@ then
data="$1"
else
data=''
+
+ # check to see if stdin's a tty
+ if [ -t 0 ]; then
+ help
+ exit
+ fi
+
while read data; do
data=$data
break

0 comments on commit c4fde8a

Please sign in to comment.
Something went wrong with that request. Please try again.