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() {
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue