From 04b3123b25c3abf89303f2438a9e1e8c9fb72f3c Mon Sep 17 00:00:00 2001 From: Matej Dujava Date: Tue, 2 May 2023 14:59:12 +0200 Subject: [PATCH] Run poetry install when force has any value Closes: #194 --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b3eef687..de42dde5 100644 --- a/Makefile +++ b/Makefile @@ -55,11 +55,11 @@ poetry.lock: pyproject.toml poetry lock .make-poetry-sync: poetry.lock - @if ! poetry env list | grep ^; then poetry install --sync --no-root; fi + @if [ -z "$(poetry env list)" -o -n "${force}" ]; then poetry install --sync --no-root; fi @ touch .make-poetry-sync .make-poetry-sync-no-dev .make-poetry-sync-no-dev: poetry.lock - @if ! poetry env list | grep ^; then poetry install --sync --no-root --without dev; fi + @if [ -z "$(poetry env list)" -o -n "${force}" ]; then poetry install --sync --no-root --without dev; fi @ touch .make-poetry-sync-no-dev