Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
diff files/fwireguard.in @ 665:24129dd789f0
Shellcheck for rc-scripts
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sun, 29 Sep 2024 18:30:22 +0200 |
| parents | c3125616d0ec |
| children |
line wrap: on
line diff
--- a/files/fwireguard.in Sun Sep 29 17:55:06 2024 +0200 +++ b/files/fwireguard.in Sun Sep 29 18:30:22 2024 +0200 @@ -19,6 +19,9 @@ # NOTE: All wireguard interfaces must be mentioned fist in "cloned_interfaces". # +# shellcheck disable=SC2034,SC2129,SC2223,SC3037 + +# shellcheck disable=SC1094 # parsing fails: rc.subr contains unknown features . /etc/rc.subr name=fwireguard @@ -61,7 +64,7 @@ _f="${fwireguard_configdir}/${_if}.pub" if [ ! -f "${_f}" ]; then echo "Generating public key for ${_if} in ${_f}" - /usr/bin/wg pubkey < ${fwireguard_configdir}/${_if}.key > "${_f}" + /usr/bin/wg pubkey < "${fwireguard_configdir}/${_if}.key" > "${_f}" fi _f="${fwireguard_configdir}/${_if}.conf"
