notify-wrapper (473B)
1 #!/bin/sh 2 os=$(uname -s | tr '[:upper:]' '[:lower:]') 3 message="$1" 4 case "$os" in 5 linux*) 6 printf "Linux not implemented yet.\n" 7 ;; 8 darwin*) 9 if command -v terminal-notifier 1>/dev/null 2>&1; then 10 terminal-notifier -sender news -group news -title 'Newsboat reloaded' -message "$message" 11 fi 12 ;; 13 msys*|cygwin*|mingw*|nt|win*) 14 printf "Windows not implemented yet.\n" 15 ;; 16 *) 17 printf "Operating system %s is unknown.\n" "$os" 18 ;; 19 esac