X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=bkmk-venv;h=f68a0a89ab9bf6c71e015f06fde53f11efee83dc;hb=8c78e35e801dce4703087810f8fbd1036c68df97;hp=10dfcbeadf5c9e8b95e20bb4e9e5ac5da48f68e2;hpb=5d420bb788898217727d24814c8259e419bf8773;p=bookmarks_db.git diff --git a/bkmk-venv b/bkmk-venv index 10dfcbe..f68a0a8 100644 --- a/bkmk-venv +++ b/bkmk-venv @@ -2,8 +2,9 @@ # it should be sourced into the current shell. if [ -z "$VIRTUAL_ENV" ]; then - test -d .venv || python3 -m virtualenv .venv - . .venv/bin/activate && - pip install --compile --upgrade beautifulsoup4 lxml m_lib.full || - exit 1 + test -d .venv && . .venv/bin/activate || { + python3 -m virtualenv .venv && + . .venv/bin/activate && + pip install --compile --upgrade beautifulsoup4 lxml m_lib.full + } || exit 1 fi