Browse Source

fix: make scanning print to stderr so the output can be directed into a file easier

pull/79/head
Thomas Dickson 1 year ago
parent
commit
122d5438f7
  1. 5
      scan.go

5
scan.go

@ -5,6 +5,7 @@ package main
import (
"fmt"
"os"
"strings"
"mvdan.cc/fdroidcl/adb"
@ -33,9 +34,9 @@ func runScan(args []string) error {
}
for _, device := range devices {
fmt.Printf("Scanning %s - %s (%s)\n", device.ID, device.Model, device.Product)
fmt.Fprintf(os.Stderr, "Scanning %s - %s (%s)\n", device.ID, device.Model, device.Product)
scanForPackages(device)
fmt.Println("Scan completed without error")
fmt.Fprintln(os.Stderr, "Scan completed without error")
}
return nil
}

Loading…
Cancel
Save