Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Take STDIN when using the ruby wrapper

  • Loading branch information...
commit 666435d3d577a82ce646b6741337fc389dfc8082 1 parent 080a8fe
Erik Kastner kastner authored

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. +4 0 Ruby/bin/terminal-notifier
4 Ruby/bin/terminal-notifier
@@ -6,4 +6,8 @@ end
6 6
7 7 require 'terminal-notifier'
8 8
  9 +unless ARGV.include?("-message")
  10 + ARGV.push(*["-message", STDIN.read.chomp])
  11 +end
  12 +
9 13 exec TerminalNotifier::BIN_PATH, *ARGV

0 comments on commit 666435d

Please sign in to comment.
Something went wrong with that request. Please try again.