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

Commit

Permalink
Fixed command.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tonye Jack committed Jun 12, 2020
1 parent b35ca9f commit ebf93f0
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/usr/bin/env bash

if [[ $(git ls-files -z -o --exclude-standard | wc -l) -eq 1 ]]; then
echo "Unstaged changes" && exit 1;
else
python manage.py graphql_schema;
fi
has_missing() {
if [[ $(git ls-files -z -o --exclude-standard | wc -l) -eq 1 ]]; then
echo "Unstaged changes" && exit 1;
fi
}

has_missing
python manage.py graphql_schema;
has_missing

0 comments on commit ebf93f0

Please sign in to comment.