From ccdbaa84f994d2f56c9f9784b93f6f71b14906b8 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Wed, 3 Feb 2021 04:29:11 -0500 Subject: [PATCH] feat: override the exit code when verifying the app name --- plugins/common/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/common/functions b/plugins/common/functions index c270576b2..a5b5a3711 100755 --- a/plugins/common/functions +++ b/plugins/common/functions @@ -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 }