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

@ -57,7 +57,14 @@ update_symlinks() {
upload() {
if [[ ${nonetwork} == 0 ]]; then
echo Uploading "$@"
rsync -e 'ssh -i ${UPLOAD_KEY} -o UserKnownHostsFile=/dev/null -o VerifyHostKeyDNS=yes -o StrictHostKeyChecking=no' "$@" ${UPLOAD_USER}@releng-incoming.gentoo.org:
local SSH_CMD=(
ssh
-i ${UPLOAD_KEY}
-o UserKnownHostsFile=/dev/null
-o VerifyHostKeyDNS=yes
-o StrictHostKeyChecking=no
)
rsync -e "${SSH_CMD[*]}" "$@" ${UPLOAD_USER}@releng-incoming.gentoo.org:
else
echo Would now upload "$@"
ls -l $@