Skip to content

Commit 659805b

Browse files
committed
*: avoid shellcheck SC1007
1 parent a3aa845 commit 659805b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bash_completion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ _variables()
687687
#
688688
_init_completion()
689689
{
690-
local exclude= flag outx errx inx OPTIND=1
690+
local exclude="" flag outx errx inx OPTIND=1
691691

692692
while getopts "n:e:o:i:s" flag "$@"; do
693693
case $flag in

completions/_umount.linux

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ _linux_fstab()
7575
realcur="$(readlink -f "$cur." 2>/dev/null)/" ||
7676
realcur=$(readlink -f "$cur" 2>/dev/null)
7777
if [[ $realcur ]]; then
78-
local dirrealcur= dircur= basecur
78+
local dirrealcur="" dircur="" basecur
7979
if [[ $cur == */* ]]; then
8080
dirrealcur="${realcur%/*}/"
8181
dircur="${cur%/*}/"

completions/modprobe

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ _modprobe()
4040
return
4141
fi
4242

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

0 commit comments

Comments
 (0)