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
a829dbd3
Commit
a829dbd3
authored
3 weeks ago
by
efer
Browse files
Options
Downloads
Patches
Plain Diff
exit if problem finding rclone/age
parent
8f59ef9a
Branches
Branches containing commit
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
+3
-2
3 additions, 2 deletions
comp-backup-install.sh
with
3 additions
and
2 deletions
comp-backup-install.sh
+
3
−
2
View file @
a829dbd3
...
...
@@ -377,7 +377,7 @@ elif [ -f $RCLONE_DIR/rclone.conf ]; then
else
emptypass
=
$(
grep
-F
"[compbackup]"
-A4
$RCLONE_DIR
/rclone.conf|awk
-F
"="
'NR==5,//{print $2}'
)
if
[
-z
$emptypass
]
;
then
echo
-e
"[rclone config]"
$R_
"Config is broken and needs to be replaced"
$_N
echo
-e
"[rclone config]"
$R_
"Config is broken and needs to be replaced
\n
"
$_N
exit
1
fi
fi
...
...
@@ -387,7 +387,8 @@ else
fi
echo
-e
"[rclone config]"
$G_
"OK"
$_N
else
echo
-e
"[rclone config]"
$R_
"Problem finding rclone/age"
$_N
echo
-e
"[rclone config]"
$R_
"Problem finding rclone/age
\n
"
$_N
exit
1
fi
#
...
...
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