Skip to content

Commit d7f357c

Browse files
committed
fix another typo, TEST, then add another useful message when the user tries to remove an active environment
--HG-- extra : convert_revision : svn%3A98f53aa3-d424-0410-b225-a548b0275c4d/Projects/virtualenvwrapper/trunk%401761
1 parent 1cb54d9 commit d7f357c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

virtualenvwrapper_bashrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function mkvirtualenv () {
6565
function rmvirtualenv () {
6666
typeset env_name="$1"
6767
verify_workon_home
68-
if ["$env_name" == "" ]
68+
if [ "$env_name" == "" ]
6969
then
7070
echo "Please specify an enviroment."
7171
return 1
@@ -74,6 +74,7 @@ function rmvirtualenv () {
7474
if [ "$VIRTUAL_ENV" == "$env_dir" ]
7575
then
7676
echo "ERROR: You cannot remove the active environment ('$env_name')."
77+
echo "Either switch to another environment, or run 'deactivate'."
7778
return 1
7879
fi
7980
rm -rf "$env_dir"

0 commit comments

Comments
 (0)