Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sol1-backupninja
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
sol1-backupninja
sol1-backupninja
Commits
1a887b83
Commit
1a887b83
authored
7 years ago
by
Matthew Smith
Browse files
Options
Downloads
Patches
Plain Diff
fix bug in logic for empty directories
parent
dc7add76
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
handlers/rdiff.in
+1
-1
1 addition, 1 deletion
handlers/rdiff.in
with
1 addition
and
1 deletion
handlers/rdiff.in
+
1
−
1
View file @
1a887b83
...
...
@@ -403,7 +403,7 @@ for i in $include; do
# 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
;
[
$?
-eq
0
]
||
areincludesempty
=
false
ls
"
${
str
}
/*"
>
2&>1 /dev/null
;
[
$?
-eq
0
]
&&
areincludesempty
=
false
execstr
=
"
${
execstr
}
--include '
$str
' "
done
# Don't backup a source that includes no files or folders
...
...
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