From 2cb158340d01621ba1e054ec1c6fd80bcd85a344 Mon Sep 17 00:00:00 2001 From: Christopher Hoskin Date: Wed, 11 Dec 2019 07:13:07 +0000 Subject: [PATCH] Merge pull request #2450 from overleaf/csh-issue-730-copybara-flag Make copybara conditional GitOrigin-RevId: 04ec7af1820b9e594af6a1f845fd09d12ea57d61 --- services/web/bin/invoke-copybara | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/bin/invoke-copybara b/services/web/bin/invoke-copybara index edb6b29b55..ee1bc93f52 100755 --- a/services/web/bin/invoke-copybara +++ b/services/web/bin/invoke-copybara @@ -2,7 +2,7 @@ KNOWN_HOSTS=/root/.ssh/known_hosts -if [[ "$BRANCH_NAME" == "master" ]]; then +if [[ "$BRANCH_NAME" == "master" && "$COPYBARA" == "run" ]]; then set -e chmod -R 0600 /root/.ssh ssh-keyscan github.com > $KNOWN_HOSTS