Skip to content

Commit

Permalink
Update example_desktop_notifications.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
binwiederhier authored Nov 3, 2021
1 parent 7b810ac commit 17839e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/example_desktop_notifications.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# a simple script. The notify-send command sends any arriving message as a desktop notification.

while read msg; do
notify-send "$msg"
[ -n "$msg" ] && notify-send "$msg"
done < <(stdbuf -i0 -o0 curl -s ntfy.sh/mytopic/raw)

0 comments on commit 17839e6

Please sign in to comment.