added guard around prependPath

This commit is contained in:
Nikola Jokic
2022-06-08 13:28:46 +02:00
parent 88b7b19db7
commit bf3707d7e0

View File

@@ -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(containerId)
dockerArgs.push(args.entryPoint) dockerArgs.push(args.entryPoint)