bin/spongebobify in spongebobify-0.1.0 vs bin/spongebobify in spongebobify-0.1.1
- old
+ new
@@ -3,10 +3,10 @@
require 'bundler/setup'
require 'spongebobify'
if ARGV.length > 0
puts Spongebobify.process(ARGV.join(" "))
-else
+elsif !STDIN.tty?
STDIN.each_line do |line|
puts Spongebobify.process(line || [])
end
end