Skip to content

Commit

Permalink
Fix config target dir slash
Browse files Browse the repository at this point in the history
  • Loading branch information
wlongabaugh committed Sep 29, 2023
1 parent 67aa569 commit 5e22730
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions idc-deploy-shell/pull_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 5e22730

Please sign in to comment.