fix: compare the env var to string true, not boolean true

This commit is contained in:
Jose Diaz-Gonzalez
2017-11-05 11:59:29 -05:00
parent b5ecdfc0c5
commit cc0687ec0f

View File

@@ -38,7 +38,7 @@ git_build_app_repo() {
DOKKU_GLOBAL_DISABLE_AUTOCREATE="$(config_get --global DOKKU_DISABLE_APP_AUTOCREATION || true)"
if [[ ! -d "$DOKKU_ROOT/$APP" ]]; then
if [[ "$DOKKU_GLOBAL_DISABLE_AUTOCREATE" == true ]]; then
if [[ "$DOKKU_GLOBAL_DISABLE_AUTOCREATE" == "true" ]]; then
dokku_log_warn "Invalid app name '$APP' specified."
dokku_log_fail "Check the name of the app or create an app with 'dokku apps:create ${APP}'"
else