aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2019-06-08 18:08:21 -0300
committerEuAndreh <eu@euandre.org>2019-06-08 18:08:21 -0300
commit0a4b7f71d18da078b9a4c02b111365f9f3339047 (patch)
treebb60d647b1e760a3f91ca9102d2e3b5ab00d22d5 /scripts
parentRemove unused $PUBLIC_KEY_ONLY (diff)
downloadserver-0a4b7f71d18da078b9a4c02b111365f9f3339047.tar.gz
server-0a4b7f71d18da078b9a4c02b111365f9f3339047.tar.xz
Add quote around nested quote expansion
Thanks ShellCheck :)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ci/setup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/ci/setup.sh b/scripts/ci/setup.sh
index 3423cd8..f134c6a 100755
--- a/scripts/ci/setup.sh
+++ b/scripts/ci/setup.sh
@@ -33,7 +33,7 @@ export SSH_SERVER_PUBLIC_KEY
# https://stackoverflow.com/questions/24963705/is-there-an-escape-character-for-envsubst
export DOLLAR='$'
-echo "${TLD},${PINNED_IP} ssh-rsa $(echo $SSH_SERVER_PUBLIC_KEY | awk '{print $2}')" > ./generated-known-hosts.txt
+echo "${TLD},${PINNED_IP} ssh-rsa $(echo "${SSH_SERVER_PUBLIC_KEY}" | awk '{print $2}')" > ./generated-known-hosts.txt
envsubst < ./ssh.env.conf >> ~/.ssh/config
envsubst < ./hosts.env > ./hosts
envsubst < ./docker-compose.env.yaml > ./docker-compose.yaml