bitwarden-ssh-agent/start.sh
2020-03-07 17:41:19 +00:00

12 lines
171 B
Bash
Executable file

#!/bin/bash
(
KEYS=$(/usr/bin/env python ssh.py)
IFS=';'
read -d '' -ra SPLITKEYS < <(printf '%s;\0' "$KEYS")
for i in ${SPLITKEYS[@]}
do
ssh-add - <<< "${i}"
done
)