mirror of
https://github.com/actions/runner-container-hooks.git
synced 2025-12-14 16:46:43 +00:00
added guard around prependPath
This commit is contained in:
@@ -326,7 +326,9 @@ export async function containerExecStep(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (args.prependPath?.length) {
|
||||||
dockerArgs.push('-e', `"PATH=${args.prependPath.join(':')}:$PATH"`)
|
dockerArgs.push('-e', `"PATH=${args.prependPath.join(':')}:$PATH"`)
|
||||||
|
}
|
||||||
|
|
||||||
dockerArgs.push(containerId)
|
dockerArgs.push(containerId)
|
||||||
dockerArgs.push(args.entryPoint)
|
dockerArgs.push(args.entryPoint)
|
||||||
|
|||||||
Reference in New Issue
Block a user