1. Henrique Bastos
  2. virtualenvwrapper

Commits

Doug Hellmann  committed b8b2fe2

if cpvirtualenv fails to create the target directory, return an error code

  • Participants
  • Parent commits 55cad81
  • Branches default

Comments (0)

Files changed (1)

File virtualenvwrapper.sh

View file
  • Ignore whitespace
     typeset RC=$?
     [ $RC -ne 0 ] && return $RC
 
-    [ ! -d "$WORKON_HOME/$trg_name" ] && return 0
+    [ ! -d "$WORKON_HOME/$trg_name" ] && return 1
 
     # Now activate the new environment
     workon "$trg_name"