File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
share/github-backup-utils Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,7 @@ ghe_backup_finished() {
199
199
200
200
ghe_parallel_check () {
201
201
GHE_PARALLEL_COMMAND_OPTIONS=()
202
+ GHE_PARALLEL_RSYNC_COMMAND_OPTIONS=()
202
203
203
204
if [ " $GHE_PARALLEL_ENABLED " != " yes" ]; then
204
205
return 0
@@ -234,12 +235,12 @@ ghe_parallel_check() {
234
235
fi
235
236
236
237
if [ -n " $GHE_PARALLEL_RSYNC_MAX_JOBS " ]; then
237
- GHE_PARALLEL_RSYNC_COMMAND_OPTIONS= " -j $GHE_PARALLEL_RSYNC_MAX_JOBS "
238
+ GHE_PARALLEL_RSYNC_COMMAND_OPTIONS+=( -j " $GHE_PARALLEL_RSYNC_MAX_JOBS " )
238
239
fi
239
240
240
241
if [ -n " $GHE_PARALLEL_MAX_LOAD " ]; then
241
242
GHE_PARALLEL_COMMAND_OPTIONS+=(-l " $GHE_PARALLEL_MAX_LOAD " )
242
- GHE_PARALLEL_RSYNC_COMMAND_OPTIONS+=" -l $GHE_PARALLEL_MAX_LOAD "
243
+ GHE_PARALLEL_RSYNC_COMMAND_OPTIONS+=( -l " $GHE_PARALLEL_MAX_LOAD " )
243
244
fi
244
245
}
245
246
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ for file_list in $tempdir/git-server-*.rsync; do
171
171
done
172
172
173
173
if [ " $GHE_PARALLEL_ENABLED " = " yes" ]; then
174
- $GHE_PARALLEL_COMMAND $ GHE_PARALLEL_RSYNC_COMMAND_OPTIONS -- " ${rsync_commands[@]} "
174
+ " $GHE_PARALLEL_COMMAND " " ${ GHE_PARALLEL_RSYNC_COMMAND_OPTIONS[@]} " -- " ${rsync_commands[@]} "
175
175
else
176
176
for c in " ${rsync_commands[@]} " ; do
177
177
eval " $c "
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ for file_list in $tempdir/*.rsync; do
152
152
done
153
153
154
154
if [ " $GHE_PARALLEL_ENABLED " = " yes" ]; then
155
- $GHE_PARALLEL_COMMAND $ GHE_PARALLEL_RSYNC_COMMAND_OPTIONS -- " ${rsync_commands[@]} "
155
+ " $GHE_PARALLEL_COMMAND " " ${ GHE_PARALLEL_RSYNC_COMMAND_OPTIONS[@]} " -- " ${rsync_commands[@]} "
156
156
else
157
157
for c in " ${rsync_commands[@]} " ; do
158
158
eval " $c "
You can’t perform that action at this time.
0 commit comments