From a45d30d0afa00266cebbab783525db0931468377 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch>
Date: Wed, 12 Apr 2023 13:52:33 +0200
Subject: [PATCH] add date in notification body

---
 jobhelper.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/jobhelper.sh b/jobhelper.sh
index 02271ef..02519c4 100755
--- a/jobhelper.sh
+++ b/jobhelper.sh
@@ -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"
-- 
GitLab