Browse Source

allow downloads without adb installed

Caught by Travis, which doesn't have adb installed.
pull/44/head
Daniel Martí 7 years ago
parent
commit
070ecb27a5
  1. 6
      download.go

6
download.go

@ -27,10 +27,8 @@ func runDownload(args []string) error {
if err != nil {
return err
}
device, err := maybeOneDevice()
if err != nil {
return err
}
// don't fail a download if adb is not installed
device, _ := maybeOneDevice()
for _, app := range apps {
apk := app.SuggestedApk(device)
if apk == nil {

Loading…
Cancel
Save