Commits

Cliff Xuan  committed b13408a

use typeset so the environment variable does not get exposed

  • Participants
  • Parent commits ffdc506

Comments (0)

Files changed (1)

File virtualenvwrapper.sh

 fi
 
 function is_cygwin_win32py {
-    _PLATFORM=$($VIRTUALENVWRAPPER_PYTHON -c "import sys; sys.stdout.write(sys.platform); sys.stdout.flush()")
-    if [ "$OSTYPE" = "cygwin" ] && [ "$_PLATFORM" = "win32" ] 
+    typeset platform=$($VIRTUALENVWRAPPER_PYTHON -c "import sys; sys.stdout.write(sys.platform); sys.stdout.flush()")
+    if [ "$OSTYPE" = "cygwin" ] && [ "$platform" = "win32" ] 
     then 
         return 0
     else