From 17839e634caa77cd826c20517a9bb9190115ca52 Mon Sep 17 00:00:00 2001 From: "Philipp C. Heckel" Date: Tue, 2 Nov 2021 21:15:21 -0400 Subject: [PATCH] Update example_desktop_notifications.sh --- examples/example_desktop_notifications.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/example_desktop_notifications.sh b/examples/example_desktop_notifications.sh index 5329c10..bc93128 100644 --- a/examples/example_desktop_notifications.sh +++ b/examples/example_desktop_notifications.sh @@ -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)