Fixed test for WORKON_HOME

This commit is contained in:
Sebastian Wiesner 2012-04-13 15:16:01 +02:00
parent 6886d552bb
commit 5248089321

View file

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