From c557d5f70a6dbb19ec878725642ada11207a9114 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 26 Nov 2021 22:10:01 +0000 Subject: [PATCH] ufw: shellcheck strikes again --- src/steps-last/15-ufw.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/steps-last/15-ufw.sh b/src/steps-last/15-ufw.sh index e223184..40db35f 100644 --- a/src/steps-last/15-ufw.sh +++ b/src/steps-last/15-ufw.sh @@ -4,6 +4,7 @@ task_begin "Configuring firewall"; #shellcheck disable=SC2154 while read -r rule; do + #shellcheck disable=SC2086 execute ufw ${rule}; done < <(cat "${temp_dir}/ufw-rules.txt"); @@ -11,6 +12,7 @@ task_end "$?" "Error: Failed to configure firewall"; # TODO: Make this automatic. For now it's on a prompt to avoid a lockout. +#shellcheck disable=SC1117 if ask_yesno "Enable UFW? Current firewall rules are listed below.\n$(ufw show added)"; then task_begin "Enabling UFW"; execute ufw enable;