Fix deleting during prompt

This commit is contained in:
Jan Bader 2020-11-21 21:52:42 +01:00
parent 83521eeae6
commit 7b138f3bb6

View File

@ -116,9 +116,6 @@ func main() {
fmt.Print("\033[H\033[2J") fmt.Print("\033[H\033[2J")
for i, file := range duplicateFiles { for i, file := range duplicateFiles {
fmt.Println(i+1, file) fmt.Println(i+1, file)
if *force {
Delete(file)
}
} }
fmt.Printf("Which file to keep? ") fmt.Printf("Which file to keep? ")
@ -141,7 +138,7 @@ func main() {
} }
if *force { if *force {
os.Remove(file) Delete(file)
} }
} }