From 8ed024af04a0819f5b35edf805ea5aae8158ca38 Mon Sep 17 00:00:00 2001 From: Wojciech Mazur Date: Fri, 19 May 2023 18:29:27 +0200 Subject: [PATCH] [sbt] In prepare skip setting ssh config if ssh key is not set --- project-builder/sbt/prepare-project.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/project-builder/sbt/prepare-project.sh b/project-builder/sbt/prepare-project.sh index 9639b837..48206b5d 100755 --- a/project-builder/sbt/prepare-project.sh +++ b/project-builder/sbt/prepare-project.sh @@ -79,5 +79,6 @@ ln -fs $scriptDir/CommunityBuildPlugin.scala $repoDir/project/CommunityBuildPlug cd $repoDir git lfs pull || true ## scala-debug adapter -echo "StrictHostKeyChecking no" >> ~/.ssh/config +# Skip if no .ssh key provided +(echo "StrictHostKeyChecking no" >> ~/.ssh/config) || true (git submodule sync && git submodule update --init --recursive) || true