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