From: Thierry Parmentelat Date: Tue, 4 Dec 2007 05:48:50 +0000 (+0000) Subject: rsync --no-motd when available X-Git-Tag: 4.2-rc2~386 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=74816c5c0eef2b173b244f0abf7a9a059a16a03a;p=build.git rsync --no-motd when available --- diff --git a/vbuild-fedora-mirror.sh b/vbuild-fedora-mirror.sh index 50421f54..fbceaf2e 100755 --- a/vbuild-fedora-mirror.sh +++ b/vbuild-fedora-mirror.sh @@ -58,6 +58,7 @@ esac excludelist="debug/ iso/ ppc/ source/" options="--archive --compress --delete --delete-excluded $dry_run $verbose" +[ -n "$(rsync --help | grep no-motd)" ] && options="$options --no-motd" for e in $excludelist; do options="$options --exclude $e" done