aboutsummaryrefslogtreecommitdiffstats
path: root/soong_ui.bash
diff options
context:
space:
mode:
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