mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-27 07:59:59 -07:00
23 lines
724 B
Bash
Executable File
23 lines
724 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
export SERIAL_PATH="./serial-macos-latest/serial"
|
|
if [ ! -x "$SERIAL_PATH" ]; then
|
|
echo "The serial binary cannot be found at $SERIAL_PATH. If you are running this from the git tree please instead run it from the latest release bundle at https://github.com/EFForg/rayhunter/releases"
|
|
exit 1
|
|
fi
|
|
|
|
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
|
|
|
|
. "$(dirname "$0")"/install-common.sh
|
|
install
|