Skip to content

Commit d1cc3d6

Browse files
author
François Conil
committed
Fix custom options being overridden on execution
If one sets an option that will be later overriden by `-a` (for instance `--no-p` ), the current behaviour dismiss that option. Since the options manually added to the configuration file are meant to be overrides, this change adds them a=fter the defaults instead of before.
1 parent eb5d42c commit d1cc3d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

share/github-backup-utils/ghe-rsync

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ set -o pipefail
1414
# stderr (rsync versions >= 3.x). The complex redirections are necessary to
1515
# filter stderr while also keeping stdout and stderr separated.
1616
IGNOREOUT='^(file has vanished: |rsync warning: some files vanished before they could be transferred)'
17-
(rsync $GHE_EXTRA_RSYNC_OPTS "${@}" 3>&1 1>&2 2>&3 3>&- |
17+
(rsync "${@}" $GHE_EXTRA_RSYNC_OPTS 3>&1 1>&2 2>&3 3>&- |
1818
(egrep -v "$IGNOREOUT" || true)) 3>&1 1>&2 2>&3 3>&- |
1919
(egrep -v "$IGNOREOUT" || true)
2020
res=$?

0 commit comments

Comments
 (0)