diff options
| author | 2018-09-20 17:08:11 +0100 | |
|---|---|---|
| committer | 2018-09-20 17:15:42 +0100 | |
| commit | 216917a72d27205d2208260128b1540b9929c33e (patch) | |
| tree | 554ebd2e6b70c5d6a757a81e4c43e3a48831a9ae | |
| parent | 3659f02632059f3ca9c0fe07cfb783bcdd23f59d (diff) | |
Use consistent style when checking env vars.
Test: no
Change-Id: Ic68161bcde2d6b7895e2b86af322d14513dcc81d
| -rwxr-xr-x | tools/veridex/appcompat.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/veridex/appcompat.sh b/tools/veridex/appcompat.sh index a24e84f616..f57c8a4799 100755 --- a/tools/veridex/appcompat.sh +++ b/tools/veridex/appcompat.sh @@ -45,8 +45,8 @@ if [ ! -d art ]; then fi # Logic for setting out_dir from build/make/core/envsetup.mk: -if [[ -z $OUT_DIR ]]; then - if [[ -z $OUT_DIR_COMMON_BASE ]]; then +if [[ -z "${OUT_DIR}" ]]; then + if [[ -z "${OUT_DIR_COMMON_BASE}" ]]; then OUT=out else OUT=${OUT_DIR_COMMON_BASE}/${PWD##*/} @@ -59,7 +59,7 @@ if [[ -z "${PACKAGING}" ]]; then PACKAGING=${OUT}/target/common/obj/PACKAGING fi -if [ -z "$ANDROID_HOST_OUT" ] ; then +if [[ -z "${ANDROID_HOST_OUT}" ]]; then ANDROID_HOST_OUT=${OUT}/host/linux-x86 fi |