feat: override the exit code when verifying the app name

This commit is contained in:
Jose Diaz-Gonzalez committed 2021-02-28 15:18:04 -05:00
1 parent 7aa1334af9
commit ccdbaa84f9
1 file changed
+1 -1
+1 -1
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" dokku_log_fail "App name must begin with lowercase alphanumeric character, and cannot include uppercase characters, colons, or underscores"
fi 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 return 0
} }