Skip to content

Commit

Permalink
Hotfix, embarrasing array values
Browse files Browse the repository at this point in the history
Signed-off-by: ApplBoy <[email protected]>
  • Loading branch information
ApplBoy committed Jan 23, 2025
1 parent e8ff127 commit 93fa2df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -753,13 +753,13 @@ function get_firewall_binary() {
firewall_bin=("iptables")
fi
if command -v nft &>/dev/null; then
firewall_bin=(firewall_bin "nft")
firewall_bin+=("nft")
fi
if command -v firewalld &>/dev/null; then
firewall_bin=(firewall_bin "firewalld")
firewall_bin+=("firewalld")
fi
if command -v ufw &>/dev/null; then
firewall_bin=(firewall_bin "ufw")
firewall_bin+=("ufw")
fi

if [[ ${#firewall_bin[@]} -eq 0 ]]; then
Expand Down

0 comments on commit 93fa2df

Please sign in to comment.