Merge branch 'bash-completion-fsck-find' of https://github.com/kevinoid/util-linux
* 'bash-completion-fsck-find' of https://github.com/kevinoid/util-linux: bash-completion: Exclude /dev/fd from fsck find
This commit is contained in:
commit
03b3c55233
|
@ -32,7 +32,8 @@ _fsck_module()
|
|||
return 0
|
||||
;;
|
||||
esac
|
||||
COMPREPLY=( $(compgen -W "$(find -L /dev/ -type b 2>/dev/null)" -- $cur) )
|
||||
COMPREPLY=( $(compgen -W "$(find -L /dev/ -path /dev/fd -prune \
|
||||
-o -type b -print 2>/dev/null)" -- $cur) )
|
||||
return 0
|
||||
}
|
||||
complete -F _fsck_module fsck
|
||||
|
|
Loading…
Reference in New Issue