2020-03-07 17:41:19 +00:00
|
|
|
#!/bin/bash
|
|
|
|
(
|
2020-04-07 13:25:18 +01:00
|
|
|
SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
|
|
|
|
cd $SCRIPTPATH
|
|
|
|
|
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
|
|
|
|
|
|
|
|
)
|