Fixed checking of whether virtualenvwrapper exists

This commit is contained in:
Urban Skudnik 2013-10-30 13:33:34 +01:00
commit 48146928b2

View file

@ -1,5 +1,5 @@
virtualenvwrapper='virtualenvwrapper_lazy.sh'
if (( $+commands[$virtualenvwrapper] )); then
if [[ -f `which $virtualenvwrapper` ]]; then
source ${${virtualenvwrapper}:c}
if [[ ! $DISABLE_VENV_CD -eq 1 ]]; then