bin/pastejour in jbarnette-pastejour-1.0.3 vs bin/pastejour in jbarnette-pastejour-1.0.4

- old
+ new

@@ -2,15 +2,18 @@ require "rubygems" require "pastejour" multiple = ARGV.delete("-m") +teeing = ARGV.delete("-t") || false name = ARGV.shift if $stdin.tty? name = /#{ENV["USER"]}$/ if name.nil? || name.empty? $stdout.write(Pastejour.get(name)) $stdout.flush else name = [ENV["USER"], name].compact.join("-") - Pastejour.serve(name, multiple, $stdin.read) + contents = $stdin.read + Pastejour.serve(name, multiple, contents) + puts contents if teeing end