Skip to content

Commit 0a775f0

Browse files
committed
if cpvirtualenv fails to create the target directory, return an error code
1 parent d4f2f8d commit 0a775f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

virtualenvwrapper.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ function cpvirtualenv {
829829
typeset RC=$?
830830
[ $RC -ne 0 ] && return $RC
831831

832-
[ ! -d "$WORKON_HOME/$trg_name" ] && return 0
832+
[ ! -d "$WORKON_HOME/$trg_name" ] && return 1
833833

834834
# Now activate the new environment
835835
workon "$trg_name"

0 commit comments

Comments
 (0)