mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 19:00:15 +00:00
Shellcheck compliance
scripts/wireguard/bash-completion * SC2207: Prefer mapfile or read -a to split command output (or quote to avoid splitting) * Added double quotes
This commit is contained in:
parent
78810a5781
commit
8bd867894a
1 changed files with 2 additions and 2 deletions
|
@ -9,9 +9,9 @@ _pivpn()
|
||||||
if [ "${#COMP_WORDS[@]}" -eq 2 ]
|
if [ "${#COMP_WORDS[@]}" -eq 2 ]
|
||||||
then
|
then
|
||||||
if [[ ${cur} == -* ]] ; then
|
if [[ ${cur} == -* ]] ; then
|
||||||
COMPREPLY=( $(compgen -W "${dashopts}" -- "${cur}") )
|
COMPREPLY=( "$(compgen -W "${dashopts}" -- "${cur}")" )
|
||||||
else
|
else
|
||||||
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
COMPREPLY=( "$(compgen -W "${opts}" -- "${cur}")" )
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
return 0
|
return 0
|
||||||
|
|
Loading…
Reference in a new issue