From: Mike Frysinger Date: Mon, 28 Jan 2013 20:57:52 +0000 (-0500) Subject: fix logging when using direct rsync X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d144418d8c50b1de2d089351c1c87848a78c652e;p=home.git fix logging when using direct rsync --- diff --git a/.bin/gentoo-sync b/.bin/gentoo-sync index 59f923c..cbe144a 100755 --- a/.bin/gentoo-sync +++ b/.bin/gentoo-sync @@ -27,10 +27,11 @@ if ${GS_RSYNC} ; then [[ -e ${f} ]] && . ${f} && break done done + > "${up_log}" : ${PORTAGE_RSYNC_OPTS:=-azO --delete --exclude=/distfiles --exclude=/local --exclude=/packages} : ${SYNC:=rsync://rsync.gentoo.org/gentoo-portage} : ${PORTDIR:=/usr/portage} - exec rsync ${PORTAGE_RSYNC_OPTS} ${PORTAGE_RSYNC_EXTRA_OPTS} ${SYNC}/ ${PORTDIR}/ + exec rsync ${PORTAGE_RSYNC_OPTS} ${PORTAGE_RSYNC_EXTRA_OPTS} ${SYNC}/ ${PORTDIR}/ >& "${sync_log}" fi emerge --sync -q