Skip to content

Commit

Permalink
don't remove the resulting directory before copy
Browse files Browse the repository at this point in the history
  • Loading branch information
alexadhy committed Mar 30, 2021
1 parent 90f0121 commit 24e6432
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cmd/cert_copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ func CopyCertCommand(e dep.Executor) *cobra.Command {
}
certDir := filepath.Join(osutil.GetDataDir(), cname)
dst := args[0]
if osutil.DirExists(dst) {
if err := os.RemoveAll(dst); err != nil {
return err
}
}
_, err := fileutil.Copy(certDir, dst)
return err
}
Expand Down

0 comments on commit 24e6432

Please sign in to comment.