_modules: Ignore error messages.
This commit is contained in:
parent
1cb1e31e18
commit
db53fc77a5
@ -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" ) )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user