forked from rosa/hakurei
cmd/mbf: print outcome pathname to stdout
This enables use of the cure command in scripts. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
+2
-2
@@ -745,7 +745,7 @@ func main() {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
log.Println(pathname)
|
||||
fmt.Println(pathname)
|
||||
|
||||
if flagExport != "" {
|
||||
msg.Verbosef("exporting %s to %s...", args[0], flagExport)
|
||||
@@ -806,7 +806,7 @@ func main() {
|
||||
}
|
||||
pathname, err := cureRemote(ctx, &addr, a, flags)
|
||||
if !flagNoReply && err == nil {
|
||||
log.Println(pathname)
|
||||
fmt.Println(pathname)
|
||||
}
|
||||
|
||||
if errors.Is(err, context.Canceled) {
|
||||
|
||||
Reference in New Issue
Block a user