summaryrefslogtreecommitdiff
path: root/libc/ci/android-install-ndk.sh
diff options
context:
space:
mode:
Diffstat (limited to 'libc/ci/android-install-ndk.sh')
-rw-r--r--libc/ci/android-install-ndk.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/libc/ci/android-install-ndk.sh b/libc/ci/android-install-ndk.sh
index 873f6c5..ce11d00 100644
--- a/libc/ci/android-install-ndk.sh
+++ b/libc/ci/android-install-ndk.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
# Copyright 2016 The Rust Project Developers. See the COPYRIGHT
# file at the top-level directory of this distribution and at
# http://rust-lang.org/COPYRIGHT.
@@ -11,7 +11,7 @@
set -ex
-curl -O https://dl.google.com/android/repository/android-ndk-r15b-linux-x86_64.zip
+curl --retry 5 -O https://dl.google.com/android/repository/android-ndk-r15b-linux-x86_64.zip
unzip -q android-ndk-r15b-linux-x86_64.zip
case "$1" in
@@ -30,8 +30,8 @@ esac;
android-ndk-r15b/build/tools/make_standalone_toolchain.py \
--unified-headers \
- --install-dir /android/ndk-$1 \
- --arch $arch \
+ --install-dir "/android/ndk-${1}" \
+ --arch "${arch}" \
--api 24
rm -rf ./android-ndk-r15b-linux-x86_64.zip ./android-ndk-r15b