Fixed indentation

Indentation was off, thanks for pointing that out Nicolas Canceill
This commit is contained in:
Roberto Haddock Lobo 2014-05-28 13:58:22 -03:00
commit 78fcb76065

View file

@ -19,10 +19,10 @@ if [[ -f "$wrapsource" ]]; then
# Activate the environment only if it is not already active # Activate the environment only if it is not already active
if [[ "$VIRTUAL_ENV" != "$WORKON_HOME/$ENV_NAME" ]]; then if [[ "$VIRTUAL_ENV" != "$WORKON_HOME/$ENV_NAME" ]]; then
if [[ -e "$WORKON_HOME/$ENV_NAME/bin/activate" ]]; then if [[ -e "$WORKON_HOME/$ENV_NAME/bin/activate" ]]; then
if [[ -z ${CD_VIRTUAL_ENV} ]]; then if [[ -z ${CD_VIRTUAL_ENV} ]]; then
export CD_VIRTUAL_ENV="$ENV_NAME" export CD_VIRTUAL_ENV="$ENV_NAME"
workon "$ENV_NAME" || unset CD_VIRTUAL_ENV workon "$ENV_NAME" || unset CD_VIRTUAL_ENV
fi fi
fi fi
fi fi
elif [ $CD_VIRTUAL_ENV ]; then elif [ $CD_VIRTUAL_ENV ]; then