We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7880b1 commit a974b0cCopy full SHA for a974b0c
bin/compile
@@ -10,7 +10,13 @@ function indent() {
10
11
ENV_DIR=${3:-}
12
ssh_key="$(cat $ENV_DIR/SSH_KEY)"
13
-ssh_hosts=${SSH_HOSTS:-"git@github.com"}
+if [ -f $ENV_DIR/SSH_HOSTS ]; then
14
+ ssh_hosts="$(cat $ENV_DIR/SSH_HOSTS)"
15
+ echo "Available ssh hosts passed via SSH_HOSTS variable: $ssh_hosts"
16
+else
17
+ ssh_hosts="git@github.com"
18
+ echo "SSH_HOSTS is not set, using default git@github.com"
19
+fi
20
21
if [ "$ssh_key" != "" ]; then
22
echo "-----> Running SSH private key setup"
0 commit comments