Skip to content

Commit

Permalink
Need to copy dir not file on contract test (#563)
Browse files Browse the repository at this point in the history
Looks like a typo bug
  • Loading branch information
michaeljguarino authored Oct 4, 2024
1 parent 6155020 commit 6f0db8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/command/pr/pr.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func handlePrContracts(c *cli.Context) error {

if contracts.Spec.Templates != nil {
tplCopy := contracts.Spec.Templates
if err := utils.CopyFile(tplCopy.From, tplCopy.To); err != nil {
if err := utils.CopyDir(tplCopy.From, tplCopy.To); err != nil {
return err
}
}
Expand Down

0 comments on commit 6f0db8a

Please sign in to comment.