Merge "Allow sourcing envsetup from anywhere" am: 0e46244250
am: 596a630c65
Original change: https://android-review.googlesource.com/c/platform/build/+/2097636 Change-Id: I1470f163980b57d0c56f9dcb00f3692b3f8c8cc7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -403,7 +403,9 @@ function addcompletions()
|
||||
# e.g.
|
||||
# ENVSETUP_NO_COMPLETION=adb # -> disable adb completion
|
||||
# ENVSETUP_NO_COMPLETION=adb:bit # -> disable adb and bit completion
|
||||
local T=$(gettop)
|
||||
for f in ${completion_files[*]}; do
|
||||
f="$T/$f"
|
||||
if [ ! -f "$f" ]; then
|
||||
echo "Warning: completion file $f not found"
|
||||
elif should_add_completion "$f"; then
|
||||
|
Reference in New Issue
Block a user