Fix flash_all completion
This commit is contained in:
parent
1776c22def
commit
fd13dea193
@ -236,7 +236,7 @@ complete -o default -F _sdocker sdocker
|
||||
_flash_all () {
|
||||
local cur
|
||||
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
COMPREPLY=( $(compgen -W "$(ls *.img)" -- ${cur} ) )
|
||||
COMPREPLY=( $(compgen -W "$(ls *.img 2>/dev/null)" -- ${cur} ) )
|
||||
}
|
||||
|
||||
complete -o default -F _flash_all flash_all
|
||||
|
Loading…
Reference in New Issue
Block a user