We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b49988e commit 03940aeCopy full SHA for 03940ae
2 files changed
samples-android/build.sh
@@ -1,11 +1,6 @@
1
#!/usr/bin/env bash
2
set -eua
3
4
-if (($BASH_VERSINFO < 4)); then
5
- echo "Sorry, you need at least bash-4.0 to run this script." >&2
6
- exit 1
7
-fi
8
-
9
# List of targets to build. Interpreted as directories relative to
10
# this script's path.
11
declare targets=( \
samples-android/build_sample.sh
@@ -13,16 +13,7 @@ echo Checking Environment... >&2
13
# point to valid paths.
14
#
15
for varname in ${required_vars[@]}; do
16
- if [[ ! -v ${varname} ]]; then
17
- echo "PROBLEM: ${varname} not set" >&2
18
- result=1
19
- else
20
- eval path=\$${varname}
21
- if [[ ! -e "${path}" ]]; then
22
- echo "PROBLEM: ${varname} (${path}) does not exist" >&2
23
24
- fi
25
+ echo "Check ${varname}"
26
done
27
28
[[ ${result} -ne 0 ]] && exit ${result}
0 commit comments