Skip to content

Commit 61ad6d7

Browse files
grennisw9jds
authored andcommitted
CD to project path before firebase use (#10)
1 parent 8822fc6 commit 61ad6d7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

entrypoint.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ if [ -z "$FIREBASE_TOKEN" ]; then
77
exit 126
88
fi
99

10+
if [ -n "$PROJECT_PATH" ]; then
11+
cd $PROJECT_PATH
12+
fi
13+
1014
if [ -n "$PROJECT_ID" ]; then
1115
echo "setting firebase project to $PROJECT_ID"
1216
firebase use --add $PROJECT_ID
1317
fi
1418

15-
if [ -n "$PROJECT_PATH" ]; then
16-
cd $PROJECT_PATH
17-
fi
18-
1919
sh -c "firebase $*"

0 commit comments

Comments
 (0)