From ebaa9f9ff38df107e1e3dccf52d5eb1a37543448 Mon Sep 17 00:00:00 2001 From: L3D Date: Fri, 12 May 2023 00:54:41 +0200 Subject: [PATCH] dirty v3 --- .github/rsync.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/rsync.sh b/.github/rsync.sh index 83c97a5..4202a40 100644 --- a/.github/rsync.sh +++ b/.github/rsync.sh @@ -3,7 +3,7 @@ set -Eeuo pipefail set -x -apt-get update -y && apt-get install -y rsync openssh-client +apt-get update -y && apt-get install -y rsync openssh-client keychain # README.md /tmp/ files.l3d.ch files ./secret_ssh_key printf "Add SSH Private Key" @@ -12,4 +12,9 @@ chmod 700 ~/.ssh mv $5 ~/.ssh/id_ed25519 chmod 400 ~/.ssh/id_ed25519 ssh-keyscan -t ed25519 $3 | tee -a ~/.ssh/known_hosts + +printf "Adding SSH to chain" +eval $(keychain --eval --quiet id_ed25519) + +printf "Starting rsync" rsync --progress $1 $4@$3:$2