Commits

croach committed 6871383

Fix for issue #164.

The `cdproject` command would error whenever a project directory path had a space in the name. This commit fixes that issue.

Comments (0)

Files changed (1)

virtualenvwrapper.sh

     virtualenvwrapper_verify_active_environment || return 1
     if [ -f "$VIRTUAL_ENV/$VIRTUALENVWRAPPER_PROJECT_FILENAME" ]
     then
-        typeset project_dir=$(cat "$VIRTUAL_ENV/$VIRTUALENVWRAPPER_PROJECT_FILENAME")
+        typeset project_dir="$(cat "$VIRTUAL_ENV/$VIRTUALENVWRAPPER_PROJECT_FILENAME")"
         if [ ! -z "$project_dir" ]
         then
             cd "$project_dir"