Add general fix for #242
This commit is contained in:
parent
776c07386d
commit
99f107fcb0
|
@ -2277,10 +2277,13 @@ function InitRemoteOSDependingSettings {
|
||||||
RSYNC_DEFAULT_ARGS="-ltD -8"
|
RSYNC_DEFAULT_ARGS="-ltD -8"
|
||||||
|
|
||||||
## NPF-MOD: Regarding #242, we need to add --old-args if rsync > 3.2.3
|
## NPF-MOD: Regarding #242, we need to add --old-args if rsync > 3.2.3
|
||||||
rsync_version=$("${RSYNC_EXECUTABLE}" --version 2>/dev/null| head -1 | awk '{print $3}')
|
#rsync_version=$("${RSYNC_EXECUTABLE}" --version 2>/dev/null| head -1 | awk '{print $3}')
|
||||||
if [ $(Vercomp $rsync_version 3.2.3) -eq 1 ]; then
|
#if [ $(VerComp $rsync_version 3.2.3) -eq 1 ]; then
|
||||||
RSYNC_DEFAULT_ARGS="$RSYNC_DEFAULT_ARGS --old-args"
|
# RSYNC_DEFAULT_ARGS="$RSYNC_DEFAULT_ARGS --old-args"
|
||||||
fi
|
#fi
|
||||||
|
# NPF-MOD: Strangely enough, also happens on RHEL7 rsync 3.1.1
|
||||||
|
# Let's resolve this easier
|
||||||
|
RSYNC_OLD_ARGS=1
|
||||||
|
|
||||||
if [ "$_DRYRUN" == true ]; then
|
if [ "$_DRYRUN" == true ]; then
|
||||||
RSYNC_DRY_ARG="-n"
|
RSYNC_DRY_ARG="-n"
|
||||||
|
|
Loading…
Reference in New Issue