Skip to content

Commit

Permalink
pfrule: fix quoting
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Nov 13, 2024
1 parent 063dfcf commit 7ad0f89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions contrib/pfrule.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ load_tables() {
for _f in "$ETC_PATH"/*.table; do
[ -f "$_f" ] || continue
_table_name=$(basename $_f .table)
do_cmd "pfctl -t "$_table_name" -T replace -f "$_f""
do_cmd "pfctl -t $_table_name -T replace -f $_f"
done
}

flush_tables() {
for _f in "$ETC_PATH"/*.table; do
[ -f "$_f" ] || continue
_table_name=$(basename $_f .table)
do_cmd "pfctl -t "$_table_name" -T flush"
do_cmd "pfctl -t $_table_name -T flush"
done
}

Expand Down
5 changes: 4 additions & 1 deletion test/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
echo "shellcheck *.sh"
shellcheck ./*.sh

echo "shellcheck contrib/*.sh"
shellcheck contrib/*.sh

echo "shellcheck include/*.sh"
shellcheck include/*.sh

Expand All @@ -11,4 +14,4 @@ shellcheck provision/*.sh

bats test/*.bats
bats test/include/*.bats
bats test/provision/*.bats
bats test/provision/*.bats

0 comments on commit 7ad0f89

Please sign in to comment.