]> git.wincent.com - WOTest.git/commit
Better handling when growlnotify is not installed
authorWincent Colaiuta <win@wincent.com>
Fri, 27 Jul 2007 15:46:40 +0000 (17:46 +0200)
committerWincent Colaiuta <win@wincent.com>
Fri, 27 Jul 2007 15:46:40 +0000 (17:46 +0200)
commitf0adf265a7361c32cc4a92bcab2497cf7309c41a
treefb60ff71c54e2612049ba4345608d8027ca547e1
parent2088ff0c2f3a17c9591863d6c3355ba7a8cc605b
Better handling when growlnotify is not installed

Previouly when growlnotify was not installed env would issue an ugly error
message to the standard error.

This commit redirects standard error to /dev/null so as to suppress this
output and instead checks the exit status of the env tool. When growlnotify
cannot be found in the current PATH a note (not an error or warning) is
printed to the console. Other failure cases issue either an error or a
warning, depending on their severity.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
WOTestClass.m