Skip to content

Commit 5011172

Browse files
committed
+ Consumption of user-defined environment
1 parent ad5b8fa commit 5011172

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Modules/TerminalSupport/Logic/Shell Commands.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public func shell(
5656
{
5757
let task: Process = .init()
5858

59-
var finalEnvironment: [String: String] = .init()
59+
var finalEnvironment: [String: String] = ProcessInfo.processInfo.environment
6060

6161
// MARK: - Set up the $HOME environment variable so brew commands work on versions 4.1 and up
6262

@@ -176,7 +176,7 @@ public func shell(
176176
{
177177
let task: Process = .init()
178178

179-
var finalEnvironment: [String: String] = .init()
179+
var finalEnvironment: [String: String] = ProcessInfo.processInfo.environment
180180

181181
// MARK: - Set up the $HOME environment variable so brew commands work on versions 4.1 and up
182182

Project.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import ProjectDescription
33
let settings = Environment.selfCompiled.getBoolean(default: false)
44

55
let version: String = "1.7.4"
6-
let build: String = "112"
6+
let build: String = "112_INHERITED_ENV"
77

88
func corkTarget(configureWithSelfCompiled: Bool) -> ProjectDescription.Target {
99
var additionalCompilationConditions = [String]()

0 commit comments

Comments
 (0)