Skip to content

Commit

Permalink
CD to project path before firebase use (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
grennis authored and w9jds committed Oct 17, 2019
1 parent 8822fc6 commit 61ad6d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ if [ -z "$FIREBASE_TOKEN" ]; then
exit 126
fi

if [ -n "$PROJECT_PATH" ]; then
cd $PROJECT_PATH
fi

if [ -n "$PROJECT_ID" ]; then
echo "setting firebase project to $PROJECT_ID"
firebase use --add $PROJECT_ID
fi

if [ -n "$PROJECT_PATH" ]; then
cd $PROJECT_PATH
fi

sh -c "firebase $*"

0 comments on commit 61ad6d7

Please sign in to comment.