Permalink
Browse files

Merge pull request #28 from kastner/master

Allow STDIN to be piped in
  • Loading branch information...
2 parents 080a8fe + 666435d commit 6007b74d1e541f995d605f57699c24b2d751a7db @alloy alloy committed Sep 20, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 Ruby/bin/terminal-notifier
@@ -6,4 +6,8 @@ end
require 'terminal-notifier'
+unless ARGV.include?("-message")
+ ARGV.push(*["-message", STDIN.read.chomp])
+end
+
exec TerminalNotifier::BIN_PATH, *ARGV

0 comments on commit 6007b74

Please sign in to comment.