Skip to content

Commit

Permalink
stop being silly
Browse files Browse the repository at this point in the history
  • Loading branch information
johnstcn committed Sep 25, 2024
1 parent 6e35253 commit 2e1bb00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/commands/copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (c *CopyCommand) ExecuteCommand(config *v1.Config, buildArgs *dockerfile.Bu
// username, groupname, or UID/GID combination to request specific ownership
// of the copied content.
chownStr := c.cmd.Chown
if c.From() == "" {
if chownStr == "" && c.From() == "" {
chownStr = "0:0"
}
uid, gid, err := getUserGroup(chownStr, replacementEnvs)
Expand Down

0 comments on commit 2e1bb00

Please sign in to comment.