summaryrefslogtreecommitdiffstats
path: root/bash-completion
diff options
context:
space:
mode:
authorBoris Egorov2015-06-02 19:59:03 +0200
committerKarel Zak2015-06-08 12:09:54 +0200
commit5e3da11b3e6c937c11953e2529b849b79ccac88e (patch)
tree01bbaed9b3880f371bf51dbbe70d8aebf4b44944 /bash-completion
parentbash-completion: sync lscpu completion with code (diff)
downloadkernel-qcow2-util-linux-5e3da11b3e6c937c11953e2529b849b79ccac88e.tar.gz
kernel-qcow2-util-linux-5e3da11b3e6c937c11953e2529b849b79ccac88e.tar.xz
kernel-qcow2-util-linux-5e3da11b3e6c937c11953e2529b849b79ccac88e.zip
bash-completion: remove unused variables [shellcheck]
Fix shellcheck SC2034 warnings. Signed-off-by: Boris Egorov <egorov@linux.com>
Diffstat (limited to 'bash-completion')
-rw-r--r--bash-completion/addpart2
-rw-r--r--bash-completion/fsck2
-rw-r--r--bash-completion/fsck.minix2
-rw-r--r--bash-completion/lsblk1
-rw-r--r--bash-completion/mkfs2
-rw-r--r--bash-completion/mkfs.bfs2
-rw-r--r--bash-completion/mkfs.minix1
7 files changed, 5 insertions, 7 deletions
diff --git a/bash-completion/addpart b/bash-completion/addpart
index e9ed793e2..317963908 100644
--- a/bash-completion/addpart
+++ b/bash-completion/addpart
@@ -1,6 +1,6 @@
_addpart_module()
{
- local cur prev
+ local cur
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
case $COMP_CWORD in
diff --git a/bash-completion/fsck b/bash-completion/fsck
index d61b37f42..301bb5d00 100644
--- a/bash-completion/fsck
+++ b/bash-completion/fsck
@@ -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]}"
diff --git a/bash-completion/fsck.minix b/bash-completion/fsck.minix
index 4ed511011..b2b2860da 100644
--- a/bash-completion/fsck.minix
+++ b/bash-completion/fsck.minix
@@ -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]}"
diff --git a/bash-completion/lsblk b/bash-completion/lsblk
index 1692dade8..e32f37100 100644
--- a/bash-completion/lsblk
+++ b/bash-completion/lsblk
@@ -81,7 +81,6 @@ _lsblk_module()
return 0
;;
esac
- local DEVS
COMPREPLY=( $(compgen -W "$($1 -pnro name)" -- $cur) )
return 0
}
diff --git a/bash-completion/mkfs b/bash-completion/mkfs
index 4edc6f0dd..a27874714 100644
--- a/bash-completion/mkfs
+++ b/bash-completion/mkfs
@@ -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]}"
diff --git a/bash-completion/mkfs.bfs b/bash-completion/mkfs.bfs
index 1bd67a068..75458bb09 100644
--- a/bash-completion/mkfs.bfs
+++ b/bash-completion/mkfs.bfs
@@ -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]}"
diff --git a/bash-completion/mkfs.minix b/bash-completion/mkfs.minix
index c84a23761..3a3602e6e 100644
--- a/bash-completion/mkfs.minix
+++ b/bash-completion/mkfs.minix
@@ -28,7 +28,6 @@ _mkfs.minix_module()
return 0
;;
esac
- local DEVS
COMPREPLY=( $(compgen -W "$(lsblk -pnro name)" -- $cur) )
return 0
}