diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-09 15:12:15 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-09 15:12:15 +0300 |
commit | b808458daa86105dd2101893961338912961ee92 (patch) | |
tree | 5a3b432668a2340cced92eeaa2654604ba0efef9 /bin/parallel-rsync-repos | |
parent | 1aa9cd3080e7ef34b7b021f23222d3990e4a1128 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'bin/parallel-rsync-repos')
-rwxr-xr-x | bin/parallel-rsync-repos | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/parallel-rsync-repos b/bin/parallel-rsync-repos index 21921148fa0..bd849371766 100755 --- a/bin/parallel-rsync-repos +++ b/bin/parallel-rsync-repos @@ -32,20 +32,20 @@ if [ -z "$RSYNC" ] ; then RSYNC=rsync fi -if ! cd $SRC ; then +if ! cd "$SRC" ; then echo "cd $SRC failed" exit 1 fi rsyncjob() { - relative_dir="./${1#$SRC}" + relative_dir="./${1#"$SRC"}" if ! $RSYNC --delete --relative -a "$relative_dir" "$DEST" ; then echo "rsync $1 failed" return 1 fi - echo "$1" >> $LOGFILE + echo "$1" >> "$LOGFILE" } export LOGFILE SRC DEST RSYNC |