Add unlock for ssh key just in case

This commit is contained in:
RealStickman 2022-11-27 13:01:46 +01:00
parent a4ca103eea
commit c07a5334d9

View File

@ -8,6 +8,11 @@ sshkeypath=$HOME/.ssh/id_ed25519
# don't transfer to the storage box directly, leads to mangled file names # don't transfer to the storage box directly, leads to mangled file names
# see: https://serverfault.com/a/765951 # see: https://serverfault.com/a/765951
# unlock ssh key
if ! ssh-add -T "${sshkeypath}.pub" &>/dev/null; then
ssh-add -q "$sshkeypath"
fi
# transfer to kavita # transfer to kavita
# books # books
echo Kavita books upload echo Kavita books upload