Skip to content

Commit 33bef33

Browse files
author
bwanamarko
committed
fix bug for MSYS users - makes several folders, fails on shell startup
* if $WORKON_HOME not defined, or folder missing, then when mkdir called must * pass $WORKON_HOME in double-quotes "$WORKON_HOME" because there might be * spaces that will be interpretted separately * e.g. C:\Documents and Settings\.virtualenv makes 3 folders: * "C:\Documents", "~/and" & "~/Settings/.virtualenv"
1 parent 6377db3 commit 33bef33

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
@@ -118,7 +118,7 @@ function virtualenvwrapper_verify_workon_home {
118118
then
119119
echo "NOTE: Virtual environments directory $WORKON_HOME does not exist. Creating..." 1>&2
120120
fi
121-
mkdir -p $WORKON_HOME
121+
mkdir -p "$WORKON_HOME"
122122
RC=$?
123123
fi
124124
return $RC

0 commit comments

Comments
 (0)