diff options
author | James Turk <dev@jamesturk.net> | 2023-11-21 15:18:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-21 15:18:53 (GMT) |
commit | e1540ae74d1fce62f53e25838ba21746ba5d8444 (patch) | |
tree | 4976f3633882db5c4d16b39654d9b49e336e8dae /Lib/venv | |
parent | 44aa603d591388316d4e671656272d2a5bb9b334 (diff) | |
download | cpython-e1540ae74d1fce62f53e25838ba21746ba5d8444.zip cpython-e1540ae74d1fce62f53e25838ba21746ba5d8444.tar.gz cpython-e1540ae74d1fce62f53e25838ba21746ba5d8444.tar.bz2 |
gh-112252: Fix error on unset $OSNAME in venv/activate (GH-112253)
Diffstat (limited to 'Lib/venv')
-rw-r--r-- | Lib/venv/scripts/common/activate | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/venv/scripts/common/activate b/Lib/venv/scripts/common/activate index 458740a..8398981 100644 --- a/Lib/venv/scripts/common/activate +++ b/Lib/venv/scripts/common/activate @@ -39,7 +39,7 @@ deactivate () { deactivate nondestructive # on Windows, a path can contain colons and backslashes and has to be converted: -if [ "$OSTYPE" = "cygwin" ] || [ "$OSTYPE" = "msys" ] ; then +if [ "${OSTYPE:-}" = "cygwin" ] || [ "${OSTYPE:-}" = "msys" ] ; then # transform D:\path\to\venv to /d/path/to/venv on MSYS # and to /cygdrive/d/path/to/venv on Cygwin export VIRTUAL_ENV=$(cygpath "__VENV_DIR__") |