Skip to content

Commit 28e8ed6

Browse files
authored
Update run-instrumental-test
1 parent 8e9f4d3 commit 28e8ed6

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

run-instrumental-test

+4-8
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@
33
if type -p java; then
44
echo "Found Java executable in PATH."
55
_java=java
6-
elif [[ -n "$JAVA_HOME" ]] && [[ -x "$JAVA_HOME/bin/java" ]]
7-
then
6+
elif [[ -n "$JAVA_HOME" ]] && [[ -x "$JAVA_HOME/bin/java" ]] ; then
87
echo "Found Java executable in JAVA_HOME."
98
_java="$JAVA_HOME/bin/java"
109
else
1110
echo "No Java found. Download the latest JDK."
1211
exit 0;
1312
fi
1413

15-
if [[ "$_java" ]]
16-
then
14+
if [[ "$_java" ]] ; then
1715
version=$("$_java" -version 2>&1 | awk -F '"' '/version/ {print $2}')
1816
echo version "$version"
1917
if [[ "$version" < "1.7" ]]; then
@@ -22,14 +20,12 @@ then
2220
fi
2321
fi
2422

25-
if [ ! -f "local.properties" ] && [ -z "${ANDROID_HOME+x}" ]
26-
then
23+
if [ ! -f "local.properties" ] && [ -z "${ANDROID_HOME+x}" ] ; then
2724
echo "File local.properties not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable."
2825
exit 0;
2926
fi
3027

31-
if [ -z "${ANDROID_HOME+x}" ]
32-
then
28+
if [ -z "${ANDROID_HOME+x}" ] ; then
3329
ANDROID_HOME=$(grep sdk.dir local.properties | cut -d= -f2)
3430
fi
3531

0 commit comments

Comments
 (0)