Skip to content
This repository was archived by the owner on May 8, 2024. It is now read-only.

Commit f36e1b7

Browse files
authored
Fix -pre-created-working-dir logic (#121)
1 parent f88afe3 commit f36e1b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/executor/executor.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ func getExpandedScriptEnvironment(executor *Executor, responseEnvironment map[st
181181

182182
// Use directory created by the persistent worker if CIRRUS_WORKING_DIR
183183
// was not overridden in the task specification by the user
184-
_, needsWorkingDir := responseEnvironment["CIRRUS_WORKING_DIR"]
185-
if needsWorkingDir && executor.preCreatedWorkingDir != "" {
184+
_, hasWorkingDir := responseEnvironment["CIRRUS_WORKING_DIR"]
185+
if !hasWorkingDir && executor.preCreatedWorkingDir != "" {
186186
responseEnvironment["CIRRUS_WORKING_DIR"] = executor.preCreatedWorkingDir
187187
}
188188

0 commit comments

Comments
 (0)