1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-10-20 12:53:06 +02:00

Update example_desktop_notifications.sh

This commit is contained in:
Philipp C. Heckel 2021-11-02 21:15:21 -04:00 committed by GitHub
parent 7b810acfb5
commit 17839e634c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,5 +3,5 @@
# a simple script. The notify-send command sends any arriving message as a desktop notification. # a simple script. The notify-send command sends any arriving message as a desktop notification.
while read msg; do while read msg; do
notify-send "$msg" [ -n "$msg" ] && notify-send "$msg"
done < <(stdbuf -i0 -o0 curl -s ntfy.sh/mytopic/raw) done < <(stdbuf -i0 -o0 curl -s ntfy.sh/mytopic/raw)