Skip to content

Commit

Permalink
fix: broken buildah copy logic
Browse files Browse the repository at this point in the history
  • Loading branch information
k3rnelpan1c-dev committed Dec 11, 2022
1 parent 4ba7f65 commit b6d3d05
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions src/buildah.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit b6d3d05

Please sign in to comment.