tools: Add RSYNC_OPTS array

Signed-off-by: Matt Turner <mattst88@gentoo.org>
This commit is contained in:
Matt Turner 2021-01-30 19:39:55 -05:00
parent e357bcd867
commit 4de1432aa1
14 changed files with 62 additions and 26 deletions

View file

@ -74,13 +74,13 @@ upload() {
-o VerifyHostKeyDNS=yes
-o StrictHostKeyChecking=no
)
rsync \
-e "${SSH_CMD[*]}" \
-a \
--omit-dir-times \
--delay-updates \
"$@" \
"${UPLOAD_DEST}"
local RSYNC_OPTS=(
-e "${SSH_CMD[*]}"
--archive
--omit-dir-times
--delay-updates
)
rsync "${RSYNC_OPTS[@]}" "$@" ${UPLOAD_DEST}
}
post_build() {