diff --git a/start.sh b/start.sh index f98a366..92cbdb7 100755 --- a/start.sh +++ b/start.sh @@ -1,3 +1,12 @@ -#!/bin/sh +#!/bin/bash +( KEYS=$(/usr/bin/env python ssh.py) -ssh-add - <<< "${KEYS}" +IFS=';' +read -d '' -ra SPLITKEYS < <(printf '%s;\0' "$KEYS") + +for i in ${SPLITKEYS[@]} +do + ssh-add - <<< "${i}" +done + +) \ No newline at end of file