[Android] Support curl systems

Jean-Baptiste Kempf git at videolan.org
Fri Feb 20 19:03:55 CET 2015


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Feb 20 19:03:44 2015 +0100| [158af5cb3e8d1de08bde21b4c8dee83483c34d48] | committer: Jean-Baptiste Kempf

Support curl systems

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=158af5cb3e8d1de08bde21b4c8dee83483c34d48
---

 compile.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compile.sh b/compile.sh
index 85278f8..f6990b3 100755
--- a/compile.sh
+++ b/compile.sh
@@ -77,7 +77,7 @@ checkfail()
 if [ ! -d "gradle/wrapper" ]; then
     GRADLE_VERSION=2.2.1
     GRADLE_URL=http://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-all.zip
-    wget ${GRADLE_URL}
+    wget ${GRADLE_URL} 2>/dev/null || curl -O ${GRADLE_URL}
     checkfail "gradle: download failed"
 
     unzip gradle-${GRADLE_VERSION}-all.zip



More information about the Android mailing list