Permalink
Browse files

Take STDIN when using the ruby wrapper

  • Loading branch information...
1 parent 080a8fe commit 666435d3d577a82ce646b6741337fc389dfc8082 @kastner kastner committed Sep 20, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 Ruby/bin/terminal-notifier
View
4 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 666435d

Please sign in to comment.