This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
+the Free Software Foundation, version 3 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
}
if flag.NArg() > 0 {
- if !process(ctx, flag.Arg(0), *keep, *dryRun, *stdout, *dumpMeta) {
- os.Exit(1)
+ if process(ctx, flag.Arg(0), *keep, *dryRun, *stdout, *dumpMeta) {
+ return
}
- return
+ os.Exit(1)
}
hasErrors := false
if _, seen := seenMetaPaths[metaPath]; seen {
continue
}
- hasErrors = hasErrors || !process(ctx, metaPath, *keep, *dryRun, false, false)
+ if !process(ctx, metaPath, *keep, *dryRun, false, false) {
+ hasErrors = true
+ }
seenMetaPaths[metaPath] = struct{}{}
}
}
log.Fatalln("Specified -node does not allow incoming")
}
for _, metaPath := range findMetas(ctx, *nodeOnly.Incoming) {
- hasErrors = hasErrors || !process(ctx, metaPath, *keep, *dryRun, false, false)
+ if !process(ctx, metaPath, *keep, *dryRun, false, false) {
+ hasErrors = true
+ }
}
}
if hasErrors {