diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2020-01-04 00:02:40 -0800 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2020-01-04 00:02:40 -0800 |
commit | 01704754311ada2c2154f501aebfda50710a185d (patch) | |
tree | 63bd0c5a0af6aa1ac13cbe38dc2c78af0215b7e6 | |
parent | pppd.sh: ppp-2.4.8 introduced "defaultroute-metric" option (diff) | |
download | netifrc-01704754311ada2c2154f501aebfda50710a185d.tar.gz netifrc-01704754311ada2c2154f501aebfda50710a185d.tar.bz2 netifrc-01704754311ada2c2154f501aebfda50710a185d.zip |
shellcheck: fix Double quote array expansions to avoid re-splitting elements. [SC2068]0.7.0
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rw-r--r-- | net/l2tp.sh | 2 | ||||
-rw-r--r-- | net/pppd.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/net/l2tp.sh b/net/l2tp.sh index 7c5b064..9644e32 100644 --- a/net/l2tp.sh +++ b/net/l2tp.sh @@ -81,7 +81,7 @@ _l2tp_get_tunnel_info() { _ip_l2tp_add() { local e - e="$(LC_ALL=C ip l2tp add $@ 2>&1 1>/dev/null)" + e="$(LC_ALL=C ip l2tp add "$@" 2>&1 1>/dev/null)" case $e in "") return 0 diff --git a/net/pppd.sh b/net/pppd.sh index 796722e..e3c4d43 100644 --- a/net/pppd.sh +++ b/net/pppd.sh @@ -163,7 +163,7 @@ pppd_pre_start() # We need to flatten the useless array set -- $(_get_array "chat_${IFVAR}") if [ $# != 0 ]; then - opts="${opts} connect '$(echo ${chatprog} $@ | sed -e "s:':'\\\\'':g")'" + opts="${opts} connect '$(echo ${chatprog} "$@" | sed -e "s:':'\\\\'':g")'" fi # Add plugins |