From 3f2b6dbea3c073c91f71082e8fbe656fc405ea8d Mon Sep 17 00:00:00 2001 From: Yevheniy Oliynyk Date: Fri, 20 Sep 2024 16:56:27 +0200 Subject: [PATCH] fix: project id env priority (#843) --- .../java/com/crowdin/cli/properties/ProjectProperties.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/crowdin/cli/properties/ProjectProperties.java b/src/main/java/com/crowdin/cli/properties/ProjectProperties.java index f38a09969..7d87b37a1 100644 --- a/src/main/java/com/crowdin/cli/properties/ProjectProperties.java +++ b/src/main/java/com/crowdin/cli/properties/ProjectProperties.java @@ -40,7 +40,9 @@ public void populateWithEnvValues(ProjectProperties props) { if (props == null) { return; } - PropertiesBuilder.setEnvIfExists(props::setProjectId, CROWDIN_PROJECT_ID); + if (props.getProjectId() == null) { + PropertiesBuilder.setEnvIfExists(props::setProjectId, CROWDIN_PROJECT_ID); + } } @Override