mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 10:50:16 +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 ]
|
||||
then
|
||||
if [[ ${cur} == -* ]] ; then
|
||||
COMPREPLY=( $(compgen -W "${dashopts}" -- "${cur}") )
|
||||
COMPREPLY=( "$(compgen -W "${dashopts}" -- "${cur}")" )
|
||||
else
|
||||
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
||||
COMPREPLY=( "$(compgen -W "${opts}" -- "${cur}")" )
|
||||
fi
|
||||
fi
|
||||
return 0
|
||||
|
|
Loading…
Reference in a new issue