1
0
Fork 0
mirror of https://github.com/vbatts/dedupe-linker.git synced 2024-12-28 01:26:33 +00:00

skip test if noop

This commit is contained in:
Vincent Batts 2014-10-14 23:28:37 -04:00
parent 71419f8faa
commit afe6182084

12
main.go
View file

@ -43,11 +43,13 @@ func main() {
)
for _, arg := range flag.Args() {
if m, err := file.SameDevPaths(*flVarBase, arg); err != nil {
log.Fatal(err)
} else if !m {
log.Printf("SKIPPING: %q is not on the same device as %q", arg, *flVarBase)
continue
if !*flNoop {
if m, err := file.SameDevPaths(*flVarBase, arg); err != nil {
log.Fatal(err)
} else if !m {
log.Printf("SKIPPING: %q is not on the same device as %q", arg, *flVarBase)
continue
}
}
done := make(chan struct{})
infos := file.HashFileGetter(arg, hash, *flWorkers, done)