From 2739d70262502bcb84d8861c7b625234d2584f7b Mon Sep 17 00:00:00 2001 From: jessamynsmith Date: Tue, 2 Jul 2019 16:17:05 -0600 Subject: [PATCH 1/2] Try accessing ssh hosts from env dir. --- bin/compile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/compile b/bin/compile index 466a87c..caaad82 100644 --- a/bin/compile +++ b/bin/compile @@ -10,7 +10,9 @@ function indent() { ENV_DIR=${3:-} ssh_key="$(cat $ENV_DIR/SSH_KEY)" -ssh_hosts=${SSH_HOSTS:-"git@github.com"} +ssh_hosts="$(cat $ENV_DIR/SSH_HOSTS)" +ssh_hosts=${ssh_hosts:-"git@github.com"} +echo "Using host: $ssh_hosts" if [ "$ssh_key" != "" ]; then echo "-----> Running SSH private key setup" From 051040915d2ae9bf511d57f5228a38b6e9dbfaec Mon Sep 17 00:00:00 2001 From: jessamynsmith Date: Thu, 4 Jul 2019 11:35:30 -0600 Subject: [PATCH 2/2] Fixed echo as there could be multiple hosts. --- bin/compile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/compile b/bin/compile index caaad82..98bd685 100644 --- a/bin/compile +++ b/bin/compile @@ -12,7 +12,7 @@ ENV_DIR=${3:-} ssh_key="$(cat $ENV_DIR/SSH_KEY)" ssh_hosts="$(cat $ENV_DIR/SSH_HOSTS)" ssh_hosts=${ssh_hosts:-"git@github.com"} -echo "Using host: $ssh_hosts" +echo "Using hosts: $ssh_hosts" if [ "$ssh_key" != "" ]; then echo "-----> Running SSH private key setup"