Skip to content
Snippets Groups Projects

Desktop notification

1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
+ 2
1
@@ -14,6 +14,7 @@
# 2018-02-13 ah,ds v1.3 detect samba shares based on a flag
# 2022-10-07 ah v1.4 unescape regex with space to prevent "grep: warning: stray \ before white space"
# 2023-03-17 ah v1.5 ignore required user on MS windows; source jobs/env if it exists; use varaiable FQDN
# 2023-04-12 ah v1.6 add desktop notification
# ================================================================================
@@ -430,7 +431,7 @@ function _getFqdn(){
# paran integer optional: exitcode; if set it adds a prefix OK or ERRROR on summary and sets urgency on error
function j_notify(){
local _summary="IML BACKUP :: $1"
local _body="$2"
local _body="$( date +%H:%M:%S ) $2"
local _rc="$3"
local _urgency="normal"
Loading