Skip to content

Commit

Permalink
*: avoid shellcheck SC1007
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Apr 26, 2019
1 parent a3aa845 commit 659805b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bash_completion
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ _variables()
#
_init_completion()
{
local exclude= flag outx errx inx OPTIND=1
local exclude="" flag outx errx inx OPTIND=1

while getopts "n:e:o:i:s" flag "$@"; do
case $flag in
Expand Down
2 changes: 1 addition & 1 deletion completions/_umount.linux
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ _linux_fstab()
realcur="$(readlink -f "$cur." 2>/dev/null)/" ||
realcur=$(readlink -f "$cur" 2>/dev/null)
if [[ $realcur ]]; then
local dirrealcur= dircur= basecur
local dirrealcur="" dircur="" basecur
if [[ $cur == */* ]]; then
dirrealcur="${realcur%/*}/"
dircur="${cur%/*}/"
Expand Down
2 changes: 1 addition & 1 deletion completions/modprobe
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ _modprobe()
return
fi

local i mode=insert module= version=$(uname -r)
local i mode=insert module="" version=$(uname -r)
for (( i=1; i < $cword; i++ )); do
case "${words[i]}" in
--remove|-!(-*)r*)
Expand Down

0 comments on commit 659805b

Please sign in to comment.