From 5e22730d5d437048742ecdb9c8961861ec5649d2 Mon Sep 17 00:00:00 2001 From: wlongabaugh Date: Fri, 29 Sep 2023 09:36:09 -0700 Subject: [PATCH] Fix config target dir slash --- idc-deploy-shell/pull_config.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/idc-deploy-shell/pull_config.sh b/idc-deploy-shell/pull_config.sh index 4cb792586e4..174c4d20542 100644 --- a/idc-deploy-shell/pull_config.sh +++ b/idc-deploy-shell/pull_config.sh @@ -2,8 +2,9 @@ if [ ! -f "/home/circleci/${CIRCLE_PROJECT_REPONAME}/viewer3_deployment_config.txt" ]; then echo gs://${DEPLOYMENT_BUCKET}/viewer3_deployment_config.txt - echo /home/circleci/${CIRCLE_PROJECT_REPONAME}/ - gsutil cp gs://${DEPLOYMENT_BUCKET}/viewer3_deployment_config.txt /home/circleci/${CIRCLE_PROJECT_REPONAME}/ + # Suddenly gsutil does not like trailing slashes as gs destinations? + echo /home/circleci/${CIRCLE_PROJECT_REPONAME} + gsutil cp gs://${DEPLOYMENT_BUCKET}/viewer3_deployment_config.txt /home/circleci/${CIRCLE_PROJECT_REPONAME} chmod ugo+r /home/circleci/${CIRCLE_PROJECT_REPONAME}/viewer3_deployment_config.txt if [ ! -f "/home/circleci/${CIRCLE_PROJECT_REPONAME}/viewer3_deployment_config.txt" ]; then echo "[ERROR] Couldn't assign viewer deployment configuration file - exiting."