bk.sh: use ssh-agent for both operations
This commit is contained in:
parent
10d8c6d37a
commit
648b1ec213
@ -10,6 +10,9 @@ while getopts ":pr" o; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
eval `ssh-agent`
|
||||||
|
ssh-add ~/.ssh/keys/lambda
|
||||||
|
|
||||||
if [ $ACTION = PUSH ]
|
if [ $ACTION = PUSH ]
|
||||||
then
|
then
|
||||||
rsync -avzP \
|
rsync -avzP \
|
||||||
@ -28,9 +31,6 @@ then
|
|||||||
~/med ~/dox dogeystamp@lambda:/mnt/disk/uv/
|
~/med ~/dox dogeystamp@lambda:/mnt/disk/uv/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
eval `ssh-agent`
|
|
||||||
ssh-add ~/.ssh/keys/lambda
|
|
||||||
|
|
||||||
if [ $ACTION = RECV ]
|
if [ $ACTION = RECV ]
|
||||||
then
|
then
|
||||||
rsync -avzP --append-verify \
|
rsync -avzP --append-verify \
|
||||||
|
Loading…
Reference in New Issue
Block a user