Fix flash_all completion

This commit is contained in:
Mathieu Maret 2016-09-26 13:58:09 +02:00
parent 1776c22def
commit fd13dea193

View File

@ -236,7 +236,7 @@ complete -o default -F _sdocker sdocker
_flash_all () { _flash_all () {
local cur local cur
cur="${COMP_WORDS[COMP_CWORD]}" 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 complete -o default -F _flash_all flash_all