fix: broken buildah copy logic

This commit is contained in:
K3rnelPan1c 2022-12-11 18:58:50 +01:00
parent 4ba7f65c03
commit b6d3d054e6
No known key found for this signature in database
GPG key ID: 4311D61DF6C90722
3 changed files with 5 additions and 4 deletions

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -130,8 +130,9 @@ export class BuildahCli implements Buildah {
core.debug("copy");
core.debug(container);
for (const content of contentToCopy) {
const args: string[] = [ "copy", container, content ];
core.debug("content: " + contentToCopy.join(" "));
if (contentToCopy.length > 0) {
const args: string[] = [ "copy", container ].concat(contentToCopy);
if (contentPath) {
args.push(contentPath);
}