Simplified virtualenvwrapper test

This commit is contained in:
Sebastian Wiesner 2012-04-13 15:32:31 +02:00
parent 5248089321
commit 36846c88ea

View file

@ -21,8 +21,6 @@ else
fi
# source virtualenvwrapper if available
if [[ -n "$WORKON_HOME" ]]; then
if (( $+commands[virtualenvwrapper.sh] )); then
source virtualenvwrapper.sh
fi
if [[ -n "$WORKON_HOME" ]] && (( $+commands[virtualenvwrapper.sh] )); then
source virtualenvwrapper.sh
fi