feat: override the exit code when verifying the app name

This commit is contained in:
Jose Diaz-Gonzalez
2021-02-03 04:29:11 -05:00
parent 7aa1334af9
commit ccdbaa84f9

View File

@@ -256,7 +256,7 @@ verify_app_name() {
dokku_log_fail "App name must begin with lowercase alphanumeric character, and cannot include uppercase characters, colons, or underscores"
fi
[[ ! -d "$DOKKU_ROOT/$APP" ]] && dokku_log_fail "App $APP does not exist"
[[ ! -d "$DOKKU_ROOT/$APP" ]] && DOKKU_FAIL_EXIT_CODE=20 dokku_log_fail "App $APP does not exist"
return 0
}