Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #28 from kastner/master

Allow STDIN to be piped in
  • Loading branch information...
commit 6007b74d1e541f995d605f57699c24b2d751a7db 2 parents 080a8fe + 666435d
@alloy alloy authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.