bitwarden-ssh-agent/start.sh

12 lines
171 B
Bash
Raw Normal View History

2020-03-07 17:41:19 +00:00
#!/bin/bash
(
2020-03-07 17:22:01 +00:00
KEYS=$(/usr/bin/env python ssh.py)
2020-03-07 17:41:19 +00:00
IFS=';'
read -d '' -ra SPLITKEYS < <(printf '%s;\0' "$KEYS")
for i in ${SPLITKEYS[@]}
do
ssh-add - <<< "${i}"
done
)