commit 1474ad501d063c03ba63a38f5818099c4496a238 parent 31e49a3bb25c5668d3305b1e63f0ba1f52215707 Author: Alex Balgavy <a.balgavy@gmail.com> Date: Tue, 18 Feb 2020 18:02:12 +0100 updatemaster: change the notify function Former-commit-id: 2809782f994b9e40555b2e681d50d9c4a15840b5 Diffstat:
M | scripts/updatemaster | | | 12 | +++++------- |
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/scripts/updatemaster b/scripts/updatemaster @@ -74,13 +74,11 @@ done # }}} # Set up notification method {{{ -if ! command -v notify &> /dev/null; then - if command -v terminal-notifier &> /dev/null; then - notify() { terminal-notifier -title "$1" -message "$2" -activate com.googlecode.iterm2; } - else - echo_warn "terminal-notifier not found, defaulting to bell. Install terminal-notifier to get the most out of this script." - notify() { echo -e '\a'; } - fi +if command -v terminal-notifier &> /dev/null; then + notify() { terminal-notifier -group updatemaster -sender updatemaster -title "$1" -message "$2" -activate com.googlecode.iterm2; } +else + echo_warn "terminal-notifier not found, defaulting to bell. Install terminal-notifier to get the most out of this script." + notify() { echo -e '\a'; } fi # }}}