From 8bd867894ad6f601fea9d7f864b089814e52e0be Mon Sep 17 00:00:00 2001 From: 4s3ti <4s3ti@protonmail.com> Date: Wed, 3 Nov 2021 14:59:06 +0100 Subject: [PATCH] Shellcheck compliance scripts/wireguard/bash-completion * SC2207: Prefer mapfile or read -a to split command output (or quote to avoid splitting) * Added double quotes --- scripts/wireguard/bash-completion | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/wireguard/bash-completion b/scripts/wireguard/bash-completion index 2c18f9d..c25a0ec 100644 --- a/scripts/wireguard/bash-completion +++ b/scripts/wireguard/bash-completion @@ -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