diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-02-03 21:20:09 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-02-03 21:20:09 +0000 |
commit | db009577ad980a987237679d82d0c594e81aa07b (patch) | |
tree | 18144314a29aeebad1cadc2a4324c6f7899fca02 /platform_tools | |
parent | 4b5ad7fcd78a2fd57ee589c811dc8bdcce0d69b4 (diff) |
fix script so that the error is actually printed if ant is not installed
R=scroggo@google.com, hcm@google.com
Author: djsollen@google.com
Review URL: https://codereview.chromium.org/148793003
git-svn-id: http://skia.googlecode.com/svn/trunk@13290 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'platform_tools')
-rwxr-xr-x | platform_tools/android/bin/android_setup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform_tools/android/bin/android_setup.sh b/platform_tools/android/bin/android_setup.sh index 9dc92f6585..7a44317e87 100755 --- a/platform_tools/android/bin/android_setup.sh +++ b/platform_tools/android/bin/android_setup.sh @@ -54,7 +54,7 @@ if [ -z "$ANDROID_SDK_ROOT" ]; then fi # ant is required to be installed on your system and in your PATH -ant -version &> /dev/null +which ant &> /dev/null if [[ "$?" != "0" ]]; then echo "ERROR: Unable to find ant. Please install it before proceeding." exit 1 |