From 648b1ec213cb0aad38ee89a66bcc155982dca8c3 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Thu, 21 Jul 2022 12:34:11 -0400 Subject: [PATCH] bk.sh: use ssh-agent for both operations --- src/.local/bin/bk.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/.local/bin/bk.sh b/src/.local/bin/bk.sh index f0ca154..bd4400a 100755 --- a/src/.local/bin/bk.sh +++ b/src/.local/bin/bk.sh @@ -10,6 +10,9 @@ while getopts ":pr" o; do esac done +eval `ssh-agent` +ssh-add ~/.ssh/keys/lambda + if [ $ACTION = PUSH ] then rsync -avzP \ @@ -28,9 +31,6 @@ then ~/med ~/dox dogeystamp@lambda:/mnt/disk/uv/ fi -eval `ssh-agent` -ssh-add ~/.ssh/keys/lambda - if [ $ACTION = RECV ] then rsync -avzP --append-verify \