From 070ecb27a5cea0b4e9fab64187e9bcdaec5c93eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Sun, 27 Jan 2019 22:57:59 +0000 Subject: [PATCH] allow downloads without adb installed Caught by Travis, which doesn't have adb installed. --- download.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/download.go b/download.go index b489ce6..2f43ee9 100644 --- a/download.go +++ b/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 {