diff --git a/venv b/venv index 46ff0fa..cfc34d1 100755 --- a/venv +++ b/venv @@ -23,10 +23,10 @@ if [ "$PYTHON" = "" ]; then fi; if test -d .venv; then - if [ -z "$MYVENV" ]; then + if [[ -z "$MYVENV" ]]; then export MYVENV=1 source .venv/bin/activate - if [ -z "$@" ]; then + if [[ -z "$@" ]]; then if test -f .venv/bin/rc.sh; then bash --rcfile .venv/bin/rc.sh else @@ -37,7 +37,6 @@ if test -d .venv; then fi else echo "You are already in a virtual environment!" - exec "$@" fi else $PYTHON -m venv --prompt="$(basename $(pwd))" .venv