Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
sol1-backupninja
sol1-backupninja
Commits
c37a6094
Commit
c37a6094
authored
Jul 26, 2017
by
Matthew Smith
Browse files
Update handlers/rdiff.in
parent
1a887b83
Changes
1
Hide whitespace changes
Inline
Side-by-side
handlers/rdiff.in
View file @
c37a6094
...
...
@@ -399,12 +399,12 @@ done
# Assume all includes are empty
areincludesempty
=
true
for
i
in
$include
;
do
[
"
$i
"
!=
"/"
]
||
fatal
"Sorry, you cannot use 'include = /'"
[
"
$i
"
!=
"/"
]
||
fatal
"Sorry, you cannot use 'include = /'"
# Escape spaces (backslashes should not have been in first place...)
str
=
"
${
i
// /\\\
}
"
# Set not empty if any have files or directories
ls
"
${
str
}
/
*
"
>
2&>1 /dev/null
;
[
$?
-
e
q
0
]
&&
areincludesempty
=
false
execstr
=
"
${
execstr
}
--include '
$str
' "
find
"
${
str
}
/"
-mindepth
1
-print
-quit
|
grep
-q
.
&&
areincludesempty
=
false
execstr
=
"
${
execstr
}
--include '
$str
' "
done
# Don't backup a source that includes no files or folders
[
$areincludesempty
=
true
]
&&
fatal
"Source includes contain no files or folders, aborting backup"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment