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

Commit 73b8481e authored by dimitry's avatar dimitry
Browse files

Rename _complete-android-module-names

A function name with dashes is apparently not universally recognized
by shell versions/variants(?). Using underscore in place of dashes
solves this problem.

Test: ./development/vndk/tools/header-checker/utils/create_reference_dumps.py -l libGLESv1_CM
Change-Id: Id7d701600760140dae9e4762a11f4abd64947d10
parent 19e65028
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -363,8 +363,8 @@ function addcompletions()
    fi
    complete -F _lunch lunch

    complete -F _complete-android-module-names gomod
    complete -F _complete-android-module-names m
    complete -F _complete_android_module_names gomod
    complete -F _complete_android_module_names m
}

function choosetype()
@@ -1535,7 +1535,7 @@ print module_info[module]['path'][0]" 2>/dev/null)
    fi
}

function _complete-android-module-names() {
function _complete_android_module_names() {
    local word=${COMP_WORDS[COMP_CWORD]}
    COMPREPLY=( $(allmod | grep -E "^$word") )
}