[refactor][fix] Remove unnecessary variable

This commit is contained in:
William Wernert
2020-07-01 13:56:15 -04:00
parent 44890edc79
commit 4b5571a8d6

View File

@@ -93,12 +93,8 @@ whiptail_bond_nics() {
IFS=' ' read -ra BNICS <<< "$BNICS"
local unmanaged_bond=0
for bond_nic in "${BNICS[@]}"; do
if [[ "${nmcli_dev_status_list}" =~ $bond_nic\:unmanaged ]]; then
unmanaged_bond=1
fi
if [[ "$unmanaged_bond" == 1 ]]; then
whiptail \
--title "Security Onion Setup" \
--msgbox "$bond_nic is unmanaged by Network Manager. Please remove it from other network management tools then re-run setup." \