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:
parent
71419f8faa
commit
afe6182084
1 changed files with 7 additions and 5 deletions
12
main.go
12
main.go
|
@ -43,11 +43,13 @@ func main() {
|
||||||
)
|
)
|
||||||
|
|
||||||
for _, arg := range flag.Args() {
|
for _, arg := range flag.Args() {
|
||||||
if m, err := file.SameDevPaths(*flVarBase, arg); err != nil {
|
if !*flNoop {
|
||||||
log.Fatal(err)
|
if m, err := file.SameDevPaths(*flVarBase, arg); err != nil {
|
||||||
} else if !m {
|
log.Fatal(err)
|
||||||
log.Printf("SKIPPING: %q is not on the same device as %q", arg, *flVarBase)
|
} else if !m {
|
||||||
continue
|
log.Printf("SKIPPING: %q is not on the same device as %q", arg, *flVarBase)
|
||||||
|
continue
|
||||||
|
}
|
||||||
}
|
}
|
||||||
done := make(chan struct{})
|
done := make(chan struct{})
|
||||||
infos := file.HashFileGetter(arg, hash, *flWorkers, done)
|
infos := file.HashFileGetter(arg, hash, *flWorkers, done)
|
||||||
|
|
Loading…
Reference in a new issue