Skip to content

Commit

Permalink
Fix syntax errors in entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
LFDM committed Sep 5, 2019
1 parent 0536589 commit b2facd5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ echo "$INPUT_GCLOUDAUTH" | base64 --decode > "$SERVICE_ACCOUNT_FILE"
sh -c "gcloud auth activate-service-account --key-file=$SERVICE_ACCOUNT_FILE"
rm "$SERVICE_ACCOUNT_FILE"

if [[ -z $INPUT_COLLECTIONIDS]] then
COLLECTION_IDS="--collection-ids $INPUT_COLLECTIONIDS"
fi
[ -z "$INPUT_COLLECTIONIDS" ] || COLLECTION_IDS="--collection-ids $INPUT_COLLECTIONIDS"

sh -c "gcloud beta firestore --project=$INPUT_PROJECTID" $INPUT_STORAGEBUCKET $COLLECTION_IDS"
sh -c "gcloud beta firestore --project=$INPUT_PROJECTID export $INPUT_STORAGEBUCKET $COLLECTION_IDS"

0 comments on commit b2facd5

Please sign in to comment.