Skip to content

Commit

Permalink
fix: Fix --keep-going flag for unmanaged command
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Feb 25, 2024
1 parent a8ab853 commit e925b0f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/cmd/unmanagedcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ func (c *Config) runUnmanagedCmd(cmd *cobra.Command, args []string, sourceState
unmanagedRelPaths := make(map[chezmoi.RelPath]struct{})
walkFunc := func(destAbsPath chezmoi.AbsPath, fileInfo fs.FileInfo, err error) error {
if err != nil {
if c.keepGoing {
c.errorf("%s: %v", destAbsPath, err)
return nil
}
return err
}
if destAbsPath == c.DestDirAbsPath {
Expand Down

0 comments on commit e925b0f

Please sign in to comment.