Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
comp-backup
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ITS
comp-backup
Commits
5ee0087d
Commit
5ee0087d
authored
3 weeks ago
by
efer
Browse files
Options
Downloads
Patches
Plain Diff
notfication guide text + check for empty LNO var
parent
7b2d2560
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
comp-backup-install.sh
+8
-2
8 additions, 2 deletions
comp-backup-install.sh
with
8 additions
and
2 deletions
comp-backup-install.sh
+
8
−
2
View file @
5ee0087d
...
...
@@ -598,7 +598,11 @@ logupdate(){
MSG="with SUCCESS"
fi
LNO=
\$
( grep -n 'INFO'
\$
LOG-last | tail -1 | cut -d":" -f1 )
if [ -z
\$
LNO ]; then
echo "Error when running the backup script"
else
sed -n "
\$
LNO,
\\\$
p"
\$
LOG-last >>
\$
LOG-short
fi
echo -e "#### BACKUP END:
\$
(date +%Y-%m-%d
\
%H:%M:%S)
\$
MSG" >>
\$
LOG-short
cat
\$
LOG-last >>
\$
LOG
rm -f
\$
LOG-last
...
...
@@ -710,6 +714,8 @@ if [ $HOST_OS = 'Darwin' ]; then
echo
-e
"#
# Please click the 'Play' button in the header bar above to trigger a notification
#
# If the pop-up does NOT say: 'It is working!' follow the next steps
#
# Click the 'Script Editor' notifications pop-up to open the Notification Settings window
#
# Enable 'Allow notifications'
...
...
@@ -719,7 +725,7 @@ if [ $HOST_OS = 'Darwin' ]; then
# Close the Script Editor and continue with the backup install script
#
\n
"
>
/tmp/notification.applescript
echo
'display notification "
Notifications from scripts are
working!"'
>>
/tmp/notification.applescript
echo
'display notification "
It is
working!"'
>>
/tmp/notification.applescript
open
-a
'Script Editor'
/tmp/notification.applescript
sleep
5
...
...
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