-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update shell path and some docs * download ADB if not present * big O not little o * bugfix * bugfix * silence errors for macos developers * Update dist/install-common.sh Co-authored-by: Will Greenberg <willg@eff.org> --------- Co-authored-by: Will Greenberg <willg@eff.org>
- Loading branch information
1 parent
3b9a001
commit ee75326
Showing
7 changed files
with
55 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
#!/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-linux.zip" | ||
unzip platform-tools-latest-linux.zip | ||
fi | ||
export ADB="./platform-tools/adb" | ||
else | ||
export ADB=`which adb` | ||
fi | ||
|
||
export SERIAL_PATH="./serial-ubuntu-latest/serial" | ||
. "$(dirname "$0")"/install-common.sh | ||
install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters