Index: build/install-build-deps-android.sh |
diff --git a/build/install-build-deps-android.sh b/build/install-build-deps-android.sh |
index f6b445bae188f9377b44186f5da8971bae0bdccb..9417b1a76ab5f761c84aaead579982f2b8ba2576 100755 |
--- a/build/install-build-deps-android.sh |
+++ b/build/install-build-deps-android.sh |
@@ -49,8 +49,8 @@ sudo apt-get -y install lighttpd python-pexpect xvfb x11-utils |
# Few binaries in the Android SDK require 32-bit libraries on the host. |
sudo apt-get -y install lib32z1 g++-multilib |
-if /usr/bin/lsb_release -r -s | grep -q "12."; then |
- # Ubuntu 12.x |
+if [ $(/usr/bin/lsb_release -r -s | cut -d"." -f1) -ge 12 ]; then |
+ # Ubuntu >= 12.x |
sudo apt-get -y install ant |
# Java can not be installed via ppa on Ubuntu 12.04+ so we'll |