Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a37e457 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "envsetup.sh: fix adb tab completion" am: 1ef63b94 am: d436fa70

parents 83a61eae d436fa70
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -395,7 +395,7 @@ function addcompletions()
    fi

    local completion_files=(
      system/core/adb/adb.bash
      packages/modules/adb/adb.bash
      system/core/fastboot/fastboot.bash
      tools/asuite/asuite.sh
    )
@@ -404,7 +404,9 @@ function addcompletions()
    # ENVSETUP_NO_COMPLETION=adb # -> disable adb completion
    # ENVSETUP_NO_COMPLETION=adb:bit # -> disable adb and bit completion
    for f in ${completion_files[*]}; do
        if [ -f "$f" ] && should_add_completion "$f"; then
        if [ ! -f "$f" ]; then
          echo "Warning: completion file $f not found"
        elif should_add_completion "$f"; then
            . $f
        fi
    done