aboutsummaryrefslogtreecommitdiffstats
path: root/soong_ui.bash
diff options
context:
space:
mode:
authorJooyung Han <jooyung@google.com>2018-12-28 14:35:14 +0900
committerJooyung Han <jooyung@google.com>2018-12-28 14:43:52 +0900
commite9793a7e820101f2786240f4b2a2e1d3e11af052 (patch)
treed71dc556e9aee3efd448fbb3c35ccb47d82fa681 /soong_ui.bash
parent186c771cb4d0ba556ab0051c6d44e502926f614e (diff)
downloadbuild_soong-e9793a7e820101f2786240f4b2a2e1d3e11af052.tar.gz
build_soong-e9793a7e820101f2786240f4b2a2e1d3e11af052.tar.bz2
build_soong-e9793a7e820101f2786240f4b2a2e1d3e11af052.zip
Fix: soong_ui.bash's wrong check for TOP variable
soong_ui.bash defines `gettop` function and it finds top of the source tree. It also checks if `TOP` is properly set and if set use it. However its check was using the wrong operator (`-z`) for it. Test: m -j Change-Id: Ie86dc340a9f89f45ff0828ea43f6afa3713bda76
Diffstat (limited to 'soong_ui.bash')
-rwxr-xr-xsoong_ui.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/soong_ui.bash b/soong_ui.bash
index a39aa9c6..c1c236b9 100755
--- a/soong_ui.bash
+++ b/soong_ui.bash
@@ -23,7 +23,7 @@ export TRACE_BEGIN_SOONG=$(date +%s%N)
function gettop
{
local TOPFILE=build/soong/root.bp
- if [ -z "${TOP-}" -a -f "${TOP-}/${TOPFILE}" ] ; then
+ if [ -n "${TOP-}" -a -f "${TOP-}/${TOPFILE}" ] ; then
# The following circumlocution ensures we remove symlinks from TOP.
(cd $TOP; PWD= /bin/pwd)
else