Skip to content

Commit

Permalink
use sed to split GLOBAL_SSH_KEY ssm paths
Browse files Browse the repository at this point in the history
  • Loading branch information
katesybernaut committed Aug 30, 2021
1 parent 3fdd780 commit 88c93e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/environment
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ get-ssm () {
if [ -n "${AWS_PARAMSTORE_SECRETS_GLOBAL_SSH}" ]
then
# AWS_PARAMSTORE_SECRETS_GLOBAL_SSH can optionally be a list delimited by `:`
GLOBAL_SSH_KEYS=(${AWS_PARAMSTORE_SECRETS_GLOBAL_SSH//:/ })
GLOBAL_SSH_KEYS=(`echo "${AWS_PARAMSTORE_SECRETS_GLOBAL_SSH}" | sed 's/:/\n/g'`)
eval $(/usr/bin/ssh-agent | sed "/^echo/d")
for KEY in ${GLOBAL_SSH_KEYS[@]}
do
Expand Down

0 comments on commit 88c93e7

Please sign in to comment.