rsync --no-motd when available
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 4 Dec 2007 05:48:50 +0000 (05:48 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 4 Dec 2007 05:48:50 +0000 (05:48 +0000)
vbuild-fedora-mirror.sh

index 50421f5..fbceaf2 100755 (executable)
@@ -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