diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-12-25 19:07:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-25 19:07:09 (GMT) |
commit | 2c07540e7d2a271d09bcca2f7731a8c60cd38350 (patch) | |
tree | a4d920f5a66dbf15adae1d91091cc2f6f89d5ec3 | |
parent | fc7e67f51a264c081a83ece59eed08d08cd250de (diff) | |
download | cpython-2c07540e7d2a271d09bcca2f7731a8c60cd38350.zip cpython-2c07540e7d2a271d09bcca2f7731a8c60cd38350.tar.gz cpython-2c07540e7d2a271d09bcca2f7731a8c60cd38350.tar.bz2 |
[3.12] gh-112252: Fix error on unset $OSNAME in venv/activate (GH-112253) (GH-112297)
(cherry picked from commit e1540ae74d1fce62f53e25838ba21746ba5d8444)
Co-authored-by: James Turk <dev@jamesturk.net>
-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 9165066..d5914e0 100644 --- a/Lib/venv/scripts/common/activate +++ b/Lib/venv/scripts/common/activate @@ -36,7 +36,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__") |