Skip to content

Commit

Permalink
Fix PrependPath format to be array instead of a concatenated string (a…
Browse files Browse the repository at this point in the history
…ctions#1948)


* Fix prependPath format
  • Loading branch information
fhammerl authored Jun 22, 2022
1 parent 9499f47 commit 416771d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public async Task RunScriptStepAsync(IExecutionContext context, ContainerInfo co
EntryPointArgs = entryPointArgs.Split(' ').Select(arg => arg.Trim()),
EntryPoint = entryPoint,
EnvironmentVariables = environmentVariables,
PrependPath = prependPath,
PrependPath = context.Global.PrependPath.Reverse<string>(),
WorkingDirectory = workingDirectory,
},
State = context.Global.ContainerHookState
Expand Down
2 changes: 1 addition & 1 deletion src/Runner.Worker/Container/ContainerHooks/HookInput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class ScriptStepArgs : IHookArgs
public IEnumerable<string> EntryPointArgs { get; set; }
public string EntryPoint { get; set; }
public IDictionary<string, string> EnvironmentVariables { get; set; }
public string PrependPath { get; set; }
public IEnumerable<string> PrependPath { get; set; }
public string WorkingDirectory { get; set; }
public bool IsRequireAlpineInResponse() => false;
}
Expand Down

0 comments on commit 416771d

Please sign in to comment.