bk.sh: use ssh-agent for both operations

This commit is contained in:
dogeystamp 2022-07-21 12:34:11 -04:00
parent 10d8c6d37a
commit 648b1ec213
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38

View File

@ -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 \