#!/usr/bin/env bash set -e if ! command -v adb &> /dev/null; then if [ ! -d ./platform-tools ]; then echo "adb not found, downloading local copy" curl -O "https://dl.google.com/android/repository/platform-tools-latest-darwin.zip" unzip platform-tools-latest-darwin.zip fi export ADB="./platform-tools/adb" else export ADB=`which adb` fi export SERIAL_PATH="./serial-macos-latest/serial" . "$(dirname "$0")"/install-common.sh install