Skip to content

Commit

Permalink
make update_latest_release script do it's copying with the -q flag
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinschaper committed Jul 4, 2024
1 parent 09c22a6 commit 68cc15d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/update_latest_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@

echo "Updating Solr, SQLite and denormalized edge files for $RELEASE"

gsutil -m cp -r output/* gs://monarch-archive/monarch-kg-dev/$RELEASE/
gsutil -q -m cp -r output/* gs://monarch-archive/monarch-kg-dev/$RELEASE/

# if RELEASE == LATEST_RELEASE, copy all of this release to latest
export LATEST_RELEASE=$(gsutil ls gs://data-public-monarchinitiative/monarch-kg-dev/latest/ | grep -o '[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}')
if [ "$RELEASE" == "$LATEST_RELEASE" ]; then
gsutil -m
gsutil -m cp -r "gs://monarch-archive/monarch-kg-dev/$RELEASE/*" gs://data-public-monarchinitiative/monarch-kg-dev/latest/
gsutil -q -m cp -r "gs://monarch-archive/monarch-kg-dev/$RELEASE/*" gs://data-public-monarchinitiative/monarch-kg-dev/latest/
fi

0 comments on commit 68cc15d

Please sign in to comment.