1. Doug Hellmann
  2. virtualenvwrapper

Commits

NISHIKAR SAPKOTA  committed e8b61a5

added no such environment prompt to rmvirtualenv if it does not exist

  • Participants
  • Parent commits 463d527
  • Branches master

Comments (0)

Files changed (1)

File virtualenvwrapper.sh

View file
  • Ignore whitespace
     do
         echo "Removing $env_name..."
         typeset env_dir="$WORKON_HOME/$env_name"
+        if [ ! -d "$env_dir" ]; then
+            echo "Cannot remove '$env_name'. No such environment." >&2
+        fi
         if [ "$VIRTUAL_ENV" = "$env_dir" ]
         then
             echo "ERROR: You cannot remove the active environment ('$env_name')." >&2