using copy-id output instead

This commit is contained in:
Wryn Wagner 2021-02-25 09:33:50 -07:00
parent ee9589c9ad
commit 3e85245359

View File

@ -12,7 +12,7 @@ WRYN_SSH_DELIMITER=' *| '
WRYN_SSH_ADD_CREDENTIALS() {
for key in $(grep -slR "PRIVATE" "$HOME/.ssh"); do
ssh-add "$key" && { echo "Added $key" } || { echo "Failed to add $key" };
ssh-add "$key";
done
}