Commits

Rui Pereira committed 981ec27

Fix rmvirtualenv hook issues.

Comments (0)

Files changed (1)

virtualenvwrapper/virtualenvwrapper.csh/rmvirtualenv

 set prior_dir = "$cwd"
 virtualenvwrapper_cd "$WORKON_HOME"
 
-virtualenvwrapper_run_hook "pre_rmvirtualenv" "$env_name"
-r\m -rf "$env_dir"
-virtualenvwrapper_run_hook "post_rmvirtualenv" "$env_name"
+(virtualenvwrapper_run_hook "pre_rmvirtualenv" "$env_name"; \
+r\m -rf "$env_dir"; \
+virtualenvwrapper_run_hook "post_rmvirtualenv" "$env_name")
 
 # If the directory we used to be in still exists, move back to it.
 if ( -d "$prior_dir" ) then