summaryrefslogtreecommitdiffstats
path: root/packaging/android
diff options
context:
space:
mode:
authorGravatar Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>2017-02-08 18:03:49 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-02-09 21:31:11 -0800
commite8923a9badd1072b9a7905e23ef5f570ad48b5a1 (patch)
tree34d8303b7cd85f2d506be71966d60a2b2067b5db /packaging/android
parent1c33951ce65feab862a7fcb725440645ae4c807d (diff)
downloadsubsurface-e8923a9badd1072b9a7905e23ef5f570ad48b5a1.tar.gz
Simplify some tests
Because `[ "$foo" != "" ] is equivalent to `[ "$foo" ]' in all POSIX shells. Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging/android')
-rw-r--r--packaging/android/android-build-wrapper.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/packaging/android/android-build-wrapper.sh b/packaging/android/android-build-wrapper.sh
index cd96f965f..0d1e6913b 100644
--- a/packaging/android/android-build-wrapper.sh
+++ b/packaging/android/android-build-wrapper.sh
@@ -49,7 +49,7 @@ for i in git cmake autoconf libtool java ant wget unzip; do
MISSING="${MISSING}${i} "
fi
done
-if [ "$MISSING" != "" ] ; then
+if [ "$MISSING" ] ; then
echo "The following packages are missing: $MISSING"
echo "Please install via your package manager."
exit 1
@@ -132,7 +132,7 @@ fi
rm -f ./subsurface-mobile-build-arm/bin/QtApp-debug.apk
rm -d ./subsurface-mobile-build-arm/AndroidManifest.xml
rm -d ./subsurface-mobile-build-arm/bin/AndroidManifest.xml
-if [ "$USE_X" != "" ] ; then
+if [ "$USE_X" ] ; then
bash "$USE_X" subsurface/packaging/android/build.sh "$RELEASE" -buildnr "$BUILDNR" arm "$@"
else
bash subsurface/packaging/android/build.sh "$RELEASE" -buildnr "$BUILDNR" arm "$@"