Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Unified Diff: platform_tools/android/bin/android_setup.sh

Issue 148793003: fix script so that the error is actually printed if ant is not installed (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: platform_tools/android/bin/android_setup.sh
diff --git a/platform_tools/android/bin/android_setup.sh b/platform_tools/android/bin/android_setup.sh
index 9dc92f6585edb70385545bcd267f7eddd715784f..7a44317e872d06c070a38d38acc8fea2f582ac6c 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698