X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=bkmk-venv;h=f68a0a89ab9bf6c71e015f06fde53f11efee83dc;hb=da4ae53194bee4fde776d2bca07db275d6102a62;hp=10dfcbeadf5c9e8b95e20bb4e9e5ac5da48f68e2;hpb=9c8f44f4ac88ba266ee73c13e5f0effdce599dd1;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