Skip to content

Commit

Permalink
fix: prevent cleandirs from deleting explicitly moved dir
Browse files Browse the repository at this point in the history
  • Loading branch information
abenz1267 committed Mar 11, 2024
1 parent 95db64f commit 07a6ef6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,10 @@ func create(dest string) {
}

func clean(src, dest string) {
if strings.HasSuffix(dest, string(filepath.Separator)) {
return
}

a := strings.Split(filepath.Dir(src), "/")
b := strings.Split(filepath.Dir(dest), "/")

Expand Down

0 comments on commit 07a6ef6

Please sign in to comment.