From ee04b752f52320701f3978bd4e3ee59f06b2c75b Mon Sep 17 00:00:00 2001 From: Youssef Rabie <78663127+YoussefMoRabie@users.noreply.github.com> Date: Fri, 7 Feb 2025 18:01:19 +0200 Subject: [PATCH] check existing venv before creating a new one --- .../.devcontainer/devcontainer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/{{ cookiecutter.project_name_dashed }}/.devcontainer/devcontainer.json b/{{ cookiecutter.project_name_dashed }}/.devcontainer/devcontainer.json index 1599d8d..8774f45 100644 --- a/{{ cookiecutter.project_name_dashed }}/.devcontainer/devcontainer.json +++ b/{{ cookiecutter.project_name_dashed }}/.devcontainer/devcontainer.json @@ -69,6 +69,6 @@ } } }, - "postCreateCommand": "make venv && . .venv/bin/activate && make install", + "postCreateCommand": "[ -d .venv ] || make venv && . .venv/bin/activate && make install", "remoteUser": "root" -} \ No newline at end of file +}