From 4b5571a8d684d88b6619001347ed233c6aff9e22 Mon Sep 17 00:00:00 2001 From: William Wernert Date: Wed, 1 Jul 2020 13:56:15 -0400 Subject: [PATCH] [refactor][fix] Remove unnecessary variable --- setup/so-whiptail | 4 ---- 1 file changed, 4 deletions(-) diff --git a/setup/so-whiptail b/setup/so-whiptail index 0ec48f2ae..c157d5257 100755 --- a/setup/so-whiptail +++ b/setup/so-whiptail @@ -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." \