Skip to content
This repository was archived by the owner on Jun 22, 2021. It is now read-only.

Commit ebf93f0

Browse files
author
Tonye Jack
committed
Fixed command.
1 parent b35ca9f commit ebf93f0

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

entrypoint.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
#!/usr/bin/env bash
22

3-
if [[ $(git ls-files -z -o --exclude-standard | wc -l) -eq 1 ]]; then
4-
echo "Unstaged changes" && exit 1;
5-
else
6-
python manage.py graphql_schema;
7-
fi
3+
has_missing() {
4+
if [[ $(git ls-files -z -o --exclude-standard | wc -l) -eq 1 ]]; then
5+
echo "Unstaged changes" && exit 1;
6+
fi
7+
}
8+
9+
has_missing
10+
python manage.py graphql_schema;
11+
has_missing

0 commit comments

Comments
 (0)