Skip to content

Commit ed8672f

Browse files
committed
allow find+delete to handle errors (in case of concurrent runs)
1 parent a2c2dc3 commit ed8672f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ upgrade:
4040

4141
# Création des données initiales dans la BDD SQLite intégrée
4242
createDB:
43-
find . -path "*/migrations/*.py" -not -name "__init__.py" -delete
44-
find . -path "*/migrations/*.pyc" -delete
43+
find . -path "*/migrations/*.py" -not -name "__init__.py" -exec rm --force "{}" +
44+
find . -path "*/migrations/*.pyc" -exec rm --force "{}" +
4545
make updatedb
4646
make migrate
4747
python3 manage.py loaddata initial_data

0 commit comments

Comments
 (0)