File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 16
16
#
17
17
18
18
_adb () {
19
- if ! type -t " $1 " > /dev/null; then
19
+ if ! check_type " $1 " > /dev/null; then
20
20
return
21
21
fi
22
22
23
- if type -t _init_completion > /dev/null; then
23
+ if check_type _init_completion > /dev/null; then
24
24
_init_completion || return
25
25
fi
26
26
@@ -435,7 +435,7 @@ _adb_util_list_files() {
435
435
fi
436
436
437
437
# Since we're probably doing file completion here, don't add a space after.
438
- if [[ $( type -t compopt) = " builtin" ]]; then
438
+ if [[ $( check_type compopt) = = " builtin" ]]; then
439
439
compopt -o nospace
440
440
fi
441
441
@@ -451,7 +451,7 @@ _adb_util_complete_local_file()
451
451
xspec=$2
452
452
453
453
# Since we're probably doing file completion here, don't add a space after.
454
- if [[ $( type -t compopt) = " builtin" ]]; then
454
+ if [[ $( check_type compopt) = = " builtin" ]]; then
455
455
compopt -o plusdirs
456
456
if [[ " ${xspec} " == " " ]]; then
457
457
COMPREPLY=( ${COMPREPLY[@]:- } $( compgen -f -- " ${cur} " ) )
@@ -492,7 +492,7 @@ _adb_util_complete_local_file()
492
492
}
493
493
494
494
495
- if [[ $( type -t compopt) = " builtin" ]]; then
495
+ if [[ $( check_type compopt) = = " builtin" ]]; then
496
496
complete -F _adb adb
497
497
else
498
498
complete -o nospace -F _adb adb
Original file line number Diff line number Diff line change 16
16
#
17
17
18
18
_fastboot () {
19
- if ! type -t " $1 " > /dev/null; then
19
+ if ! check_type " $1 " > /dev/null; then
20
20
return
21
21
fi
22
22
23
- if type -t _init_completion > /dev/null; then
23
+ if check_type _init_completion > /dev/null; then
24
24
_init_completion || return
25
25
fi
26
26
@@ -135,7 +135,7 @@ _fastboot_util_complete_local_file() {
135
135
xspec=$2
136
136
137
137
# Since we're probably doing file completion here, don't add a space after.
138
- if [[ $( type -t compopt) = " builtin" ]]; then
138
+ if [[ $( check_type compopt) = = " builtin" ]]; then
139
139
compopt -o plusdirs
140
140
if [[ " ${xspec} " == " " ]]; then
141
141
COMPREPLY=( ${COMPREPLY[@]:- } $( compgen -f -- " ${cur} " ) )
@@ -175,7 +175,7 @@ _fastboot_util_complete_local_file() {
175
175
fi
176
176
}
177
177
178
- if [[ $( type -t compopt) = " builtin" ]]; then
178
+ if [[ $( check_type compopt) = = " builtin" ]]; then
179
179
complete -F _fastboot fastboot
180
180
else
181
181
complete -o nospace -F _fastboot fastboot
You can’t perform that action at this time.
0 commit comments