_modules: Ignore error messages.

This commit is contained in:
Igor Murzov 2012-01-12 19:02:29 +04:00
parent 1cb1e31e18
commit db53fc77a5

View File

@ -1144,7 +1144,7 @@ _modules()
{ {
local modpath local modpath
modpath=/lib/modules/$1 modpath=/lib/modules/$1
COMPREPLY=( $( compgen -W "$( command ls -RL $modpath | \ COMPREPLY=( $( compgen -W "$( command ls -RL $modpath 2>/dev/null | \
sed -ne 's/^\(.*\)\.k\{0,1\}o\(\.gz\)\{0,1\}$/\1/p' )" -- "$cur" ) ) sed -ne 's/^\(.*\)\.k\{0,1\}o\(\.gz\)\{0,1\}$/\1/p' )" -- "$cur" ) )
} }