bash-completion: remove unused variables [shellcheck]

Fix shellcheck SC2034 warnings.

Signed-off-by: Boris Egorov <egorov@linux.com>
This commit is contained in:
Boris Egorov 2015-06-02 23:59:03 +06:00 committed by Karel Zak
parent bcce334df8
commit 5e3da11b3e
7 changed files with 5 additions and 7 deletions

View File

@ -1,6 +1,6 @@
_addpart_module()
{
local cur prev
local cur
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
case $COMP_CWORD in

View File

@ -1,6 +1,6 @@
_fsck_module()
{
local cur prev OPTS DEVS
local cur prev OPTS
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"

View File

@ -1,6 +1,6 @@
_fsck.minix_module()
{
local cur prev OPTS DEVS
local cur prev OPTS
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"

View File

@ -81,7 +81,6 @@ _lsblk_module()
return 0
;;
esac
local DEVS
COMPREPLY=( $(compgen -W "$($1 -pnro name)" -- $cur) )
return 0
}

View File

@ -1,6 +1,6 @@
_mkfs_module()
{
local cur prev OPTS DEVS
local cur prev OPTS
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"

View File

@ -1,6 +1,6 @@
_mkfs.bfs_module()
{
local cur prev OPTS DEVS
local cur prev OPTS
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"

View File

@ -28,7 +28,6 @@ _mkfs.minix_module()
return 0
;;
esac
local DEVS
COMPREPLY=( $(compgen -W "$(lsblk -pnro name)" -- $cur) )
return 0
}