Skip to content

Commit

Permalink
lsdjf
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyGibson committed May 14, 2020
1 parent 3315e0a commit 4188bfd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions hook/django_migrate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ set -o errexit
set -o pipefail
set -o nounset

if ! command python manage.py makemigrations --dry-run | grep 'No changes detected'; then
>&2 echo 'Migrations found'
if command python manage.py makemigrations --dry-run | grep -q 'No changes detected'; then
exit 0
else
exit 1
fi
fi

0 comments on commit 4188bfd

Please sign in to comment.