Skip to content

Commit

Permalink
review comment
Browse files Browse the repository at this point in the history
Signed-off-by: Kit Patella <[email protected]>
  • Loading branch information
mkcp committed Sep 30, 2024
1 parent a043273 commit 59c3113
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pkg/packager/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -470,9 +470,9 @@ func (p *Packager) processComponentFiles(component v1alpha1.ZarfComponent, pkgLo

// Copy the file to the destination
spinner.Updatef("Saving %s", file.Target)
err2 := helpers.CreatePathAndCopy(fileLocation, file.Target)
if err2 != nil {
return fmt.Errorf("unable to copy file %s to %s: %w", fileLocation, file.Target, err2)
err = helpers.CreatePathAndCopy(fileLocation, file.Target)
if err != nil {
return fmt.Errorf("unable to copy file %s to %s: %w", fileLocation, file.Target, err)
}

// Loop over all symlinks and create them
Expand Down

0 comments on commit 59c3113

Please sign in to comment.