From 9a881d07917e9f9389f7d40fe4e10de8ebd73245 Mon Sep 17 00:00:00 2001 From: Jeff Dost Date: Thu, 11 Jun 2026 08:39:40 -0700 Subject: [PATCH] put in quotes to preserve newlines in hostkey output --- hosted-ce/usr/local/bin/bosco-override-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosted-ce/usr/local/bin/bosco-override-setup.sh b/hosted-ce/usr/local/bin/bosco-override-setup.sh index c29f46f..cd81d3c 100755 --- a/hosted-ce/usr/local/bin/bosco-override-setup.sh +++ b/hosted-ce/usr/local/bin/bosco-override-setup.sh @@ -28,7 +28,7 @@ if [[ $GIT_ENDPOINT =~ ^([A-Za-z0-9_-]+)@([^:]+): ]]; then GIT_HOST="${BASH_REMATCH[2]}" GIT_HOST_KEY=$(ssh-keyscan "$GIT_HOST") if [[ -n $GIT_HOST_KEY ]]; then - echo $GIT_HOST_KEY >> /etc/ssh/ssh_known_hosts + echo "$GIT_HOST_KEY" >> /etc/ssh/ssh_known_hosts else errexit "Failed to determine host key for $GIT_HOST" fi