aboutsummaryrefslogtreecommitdiff
path: root/src/androidtest.bash
diff options
context:
space:
mode:
Diffstat (limited to 'src/androidtest.bash')
-rwxr-xr-xsrc/androidtest.bash5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/androidtest.bash b/src/androidtest.bash
index a790f95920..773509f547 100755
--- a/src/androidtest.bash
+++ b/src/androidtest.bash
@@ -23,10 +23,7 @@ if [ "$GOOS" != "android" ]; then
exit 1
fi
-if [ -z $GOARM ]; then
- export GOARM=7
-fi
-if [ "$GOARM" != "7" ]; then
+if [ -n "$GOARM" ] && [ "$GOARM" != "7" ]; then
echo "android only supports GOARM=7, got GOARM=$GOARM" 1>&2
exit 1
fi