From 1d11cf2daf23853a86e236f6ffbc9ea16f3e8c34 Mon Sep 17 00:00:00 2001 From: Yaazkal Date: Sat, 23 Nov 2024 20:20:14 -0500 Subject: [PATCH] setup: shellchek --- usr/local/share/bastille/setup.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usr/local/share/bastille/setup.sh b/usr/local/share/bastille/setup.sh index aba43f06..21f0a51d 100644 --- a/usr/local/share/bastille/setup.sh +++ b/usr/local/share/bastille/setup.sh @@ -30,6 +30,7 @@ bastille_config="/usr/local/etc/bastille/bastille.conf" . /usr/local/share/bastille/common.sh +# shellcheck source=/usr/local/etc/bastille/bastille.conf . ${bastille_config} usage() { @@ -75,14 +76,16 @@ EOF # Configure pf firewall configure_pf() { +# shellcheck disable=SC2154 if [ ! -f "${bastille_pf_conf}" ]; then + # shellcheck disable=SC3043 local ext_if ext_if=$(netstat -rn | awk '/default/ {print $4}' | head -n1) info "Determined default network interface: ($ext_if)" info "${bastille_pf_conf} does not exist: creating..." ## creating pf.conf - cat << EOF > ${bastille_pf_conf} + cat << EOF > "${bastille_pf_conf}" ## generated by bastille setup ext_if="$ext_if"