Commits

Doug Hellmann committed b8b2fe2

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

Comments (0)

Files changed (1)

virtualenvwrapper.sh

     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"