Skip to content

Commit 28ec135

Browse files
author
Luke Daley
committed
Allow task spec to filter command line for signature
1 parent 3b78898 commit 28ec135

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SWBTaskExecution/TaskActions/TaskAction.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ open class TaskAction: PlannedTaskAction, PolymorphicSerializable
6969
{
7070
let md5 = InsecureHashContext()
7171
md5.add(bytes: serializedRepresentationSignature!)
72-
for arg in task.commandLine {
73-
md5.add(bytes: arg.asByteString)
72+
for arg in task.type.commandLineForSignature(for: task) ?? [] {
73+
md5.add(bytes: arg)
7474
md5.add(number: 0)
7575
}
7676
task.environment.computeSignature(into: md5)

0 commit comments

Comments
 (0)