Skip to content

Commit

Permalink
Fix: catch grep failure so reset script doesn't die (#1991)
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman authored Mar 28, 2024
2 parents 23f6b11 + 05c976b commit de1e85d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/reset_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ else
echo "DB_RESET is false, skipping"
fi

valid_fixtures=$(echo "$DJANGO_DB_FIXTURES" | grep -e fixtures\.json$)
valid_fixtures=$(echo "$DJANGO_DB_FIXTURES" | grep -e fixtures\.json$ || test $? = 1)

if [[ -n "$valid_fixtures" ]]; then
# load data fixtures
Expand Down

0 comments on commit de1e85d

Please sign in to comment.