Skip to content

Commit

Permalink
Fix syntax error
Browse files Browse the repository at this point in the history
Signed-off-by: Jens <[email protected]>
  • Loading branch information
jens-mp authored Jun 24, 2024
1 parent d1f98de commit 071f40c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run/ip_tables_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
add_new_rule() {
RULE=("$@")

if rule_exists "${RULE[@}]}"; then
if rule_exists "${RULE[@]}"; then
echo "[skip] ${RULE[*]} already exists"
elif [[ "${RULE[*]}" =~ "DROP" ]] || [[ "${RULE[*]}" =~ "RETURN" ]] || [[ "${RULE[*]}" =~ "REJECT" ]]; then
iptables -A "${RULE[@]}"
Expand Down

0 comments on commit 071f40c

Please sign in to comment.