Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iml-backup
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
iml-backup
Commits
a45d30d0
Commit
a45d30d0
authored
2 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
add date in notification body
parent
5c841e09
No related branches found
No related tags found
1 merge request
!101
Desktop notification
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
jobhelper.sh
+2
-1
2 additions, 1 deletion
jobhelper.sh
with
2 additions
and
1 deletion
jobhelper.sh
+
2
−
1
View file @
a45d30d0
...
...
@@ -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"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment