diff options
author | newt@chromium.org <newt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-18 20:32:30 +0000 |
---|---|---|
committer | newt@chromium.org <newt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-18 20:32:30 +0000 |
commit | b67e845aa93154326de781e882f5f106a7c36b80 (patch) | |
tree | d0c2d22f4c039e6af1c14369c706b158d2dc2641 /tools/android/adb_remote_setup.sh | |
parent | 7c1c307c7a4b599c114127ec971dc356639d415c (diff) | |
download | chromium_src-b67e845aa93154326de781e882f5f106a7c36b80.zip chromium_src-b67e845aa93154326de781e882f5f106a7c36b80.tar.gz chromium_src-b67e845aa93154326de781e882f5f106a7c36b80.tar.bz2 |
Ensure adb is in path in adb_remote_setup.sh.
Review URL: https://codereview.chromium.org/239663004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@264845 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/android/adb_remote_setup.sh')
-rwxr-xr-x | tools/android/adb_remote_setup.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/android/adb_remote_setup.sh b/tools/android/adb_remote_setup.sh index 04b7d4f..bf209cd 100755 --- a/tools/android/adb_remote_setup.sh +++ b/tools/android/adb_remote_setup.sh @@ -50,6 +50,12 @@ fi remote_host="$1" remote_adb="${2:-adb}" +# Ensure adb is in the local machine's path. +if ! which adb >/dev/null; then + echo "error: adb must be in your local machine's path." + exit 1 +fi + if which kinit >/dev/null; then # Allow ssh to succeed without typing your password multiple times. kinit -R || kinit |