From 28fb63b9ae1516d38f9d64294116a238e7d434de Mon Sep 17 00:00:00 2001 From: Philipp Heckel Date: Wed, 27 Oct 2021 14:58:38 -0400 Subject: [PATCH] readme --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index ee843861..1ce82a21 100644 --- a/README.md +++ b/README.md @@ -29,8 +29,8 @@ curl -s ntfy.sh/mytopic/sse You can easily script it to execute any command when a message arrives. This sends desktop notifications (just like the web UI, but without it): ``` -while read msg; do - notify-send "$msg" +while read msg; do + [ -n "$msg" ] && notify-send "$msg" done < <(stdbuf -i0 -o0 curl -s ntfy.sh/mytopic/raw) ``` @@ -64,13 +64,13 @@ sudo apt install ntfy **Debian/Ubuntu** (*manual install*)**:** ```bash sudo apt install tmux -wget https://github.com/binwiederhier/ntfy/releases/download/v0.0.4/ntfy_0.0.4_amd64.deb -dpkg -i ntfy_0.0.4_amd64.deb +wget https://github.com/binwiederhier/ntfy/releases/download/v1.0.0/ntfy_1.0.0_amd64.deb +dpkg -i ntfy_1.0.0_amd64.deb ``` **Fedora/RHEL/CentOS:** ```bash -rpm -ivh https://github.com/binwiederhier/ntfy/releases/download/v0.0.4/ntfy_0.0.4_amd64.rpm +rpm -ivh https://github.com/binwiederhier/ntfy/releases/download/v1.0.0/ntfy_1.0.0_amd64.rpm ``` **Docker:** @@ -85,8 +85,8 @@ go get -u heckel.io/ntfy **Manual install** (*any x86_64-based Linux*)**:** ```bash -wget https://github.com/binwiederhier/ntfy/releases/download/v0.0.4/ntfy_0.0.4_linux_x86_64.tar.gz -sudo tar -C /usr/bin -zxf ntfy_0.0.4_linux_x86_64.tar.gz ntfy +wget https://github.com/binwiederhier/ntfy/releases/download/v1.0.0/ntfy_1.0.0_linux_x86_64.tar.gz +sudo tar -C /usr/bin -zxf ntfy_1.0.0_linux_x86_64.tar.gz ntfy ./ntfy ```