From 4f4ae55c39443b3d4ea392a73fc35da83f157f3b Mon Sep 17 00:00:00 2001 From: Elliot Jordan Date: Wed, 26 Nov 2025 09:17:10 -0800 Subject: [PATCH] Custom environment should be set if present (#1292) --- code/cli/munki/shared/utils/cliutils.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/cli/munki/shared/utils/cliutils.swift b/code/cli/munki/shared/utils/cliutils.swift index 8a5b9897..9d542205 100644 --- a/code/cli/munki/shared/utils/cliutils.swift +++ b/code/cli/munki/shared/utils/cliutils.swift @@ -211,7 +211,7 @@ func runCLI(_ tool: String, let task = Process() task.executableURL = URL(fileURLWithPath: tool) task.arguments = arguments - if !environment.isEmpty == false { + if !environment.isEmpty { task.environment = environment }