vjeantet / alerter

Send User Alert Notification on Mac OS X from the command-line.
MIT License
936 stars 62 forks source link

ignore empty message from stdin #49

Closed toy closed 1 year ago

toy commented 2 years ago

Without this change alerter -remove XYZ when executed with non tty stdin (for example by launchd, can be imitated in terminal using cat | alerter -remove XYZ) creates a blank notification.