Skip to content

Commit

Permalink
Add creation of event-logs folder and copy empty.txt to the folder
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwenyihust committed Dec 25, 2023
1 parent 838e3a0 commit 9c598ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bin/connect_gcp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,12 @@ if gsutil ls -b "gs://$BUCKET_NAME" >/dev/null 2>&1; then
else
echo "Bucket gs://$BUCKET_NAME does not exist. Creating the bucket."
gsutil mb -l $BUCKET_LOCATION -c $BUCKET_STORAGE_CLASS "gs://$BUCKET_NAME"
fi

# Create event-logs folder
if gsutil ls -b "gs://$BUCKET_NAME/event-logs" >/dev/null 2>&1; then
echo "Bucket gs://$BUCKET_NAME/event-logs already exists."
else
echo "Folder gs://$BUCKET_NAME/event-logs does not exist. Creating the folder."
gsutil cp -r ./resources/event-logs gs://$BUCKET_NAME/event-logs
fi
Empty file added resources/event-logs/empty.txt
Empty file.

0 comments on commit 9c598ef

Please sign in to comment.