tools: Add SSH_CMD array

Signed-off-by: Matt Turner <mattst88@gentoo.org>
This commit is contained in:
Matt Turner 2021-01-30 19:16:03 -05:00
parent 3d95cec60b
commit e357bcd867
14 changed files with 112 additions and 14 deletions

View file

@ -54,8 +54,15 @@ update_symlinks() {
upload() {
echo " ** Uploading $@"
local SSH_CMD=(
ssh
-i ${UPLOAD_KEY}
-o UserKnownHostsFile=/dev/null
-o VerifyHostKeyDNS=yes
-o StrictHostKeyChecking=no
)
rsync \
-e 'ssh -i ${UPLOAD_KEY} -o UserKnownHostsFile=/dev/null -o VerifyHostKeyDNS=yes -o StrictHostKeyChecking=no' \
-e "${SSH_CMD[*]}" \
-a \
--omit-dir-times \
--delay-updates \