Skip to content

Commit fa1b2a8

Browse files
committed
strip spaces from template names; fixes #111
1 parent 6fd972b commit fa1b2a8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

virtualenvwrapper.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,10 @@ function mkproject {
878878
do
879879
echo
880880
echo "Applying template $t"
881-
virtualenvwrapper_run_hook --name $t project.template $envname
881+
# For some reason zsh insists on prefixing the template
882+
# names with a space, so strip them out before passing
883+
# the value to the hook loader.
884+
virtualenvwrapper_run_hook --name $(echo $t | sed 's/^ //') project.template $envname
882885
done
883886

884887
virtualenvwrapper_run_hook project.post_mkproject

0 commit comments

Comments
 (0)