From 4188bfdbc39db9b485d1c7d56cae6d72805b1177 Mon Sep 17 00:00:00 2001 From: Jeremy Gibson Date: Wed, 13 May 2020 21:58:10 -0400 Subject: [PATCH] lsdjf --- hook/django_migrate.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hook/django_migrate.sh b/hook/django_migrate.sh index a94d5a6..73e6d67 100755 --- a/hook/django_migrate.sh +++ b/hook/django_migrate.sh @@ -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 \ No newline at end of file