From 79926abb48eb8a5bf70e460ccb74c1208ffae387 Mon Sep 17 00:00:00 2001 From: Peter Ledbrook Date: Wed, 7 Jul 2021 17:09:22 +0100 Subject: [PATCH] Fix erroneous logic test on collection maps A test for whether the collection maps configuration specified at least one map to cook was instead checking if there were *no* maps configured. --- build_common.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_common.ps1 b/build_common.ps1 index 44b77f6..9acca21 100644 --- a/build_common.ps1 +++ b/build_common.ps1 @@ -599,7 +599,7 @@ class BuildProject { $sfMapsNames = @() if (-not(Test-Path $contentForCookPath)) { - if ($sfCollectionOnlyMapsNames.Length -lt 1) { + if ($sfCollectionOnlyMapsNames.Length -gt 0) { ThrowFailure "Collection map cooking is requested, but no ContentForCook folder is present" }