[fix] Change if condition when checking nmcli status

This commit is contained in:
William Wernert
2020-07-01 13:05:11 -04:00
parent 19b997ece0
commit db764902c7

View File

@@ -95,7 +95,7 @@ whiptail_bond_nics() {
local unmanaged_bond=0
for bond_nic in "${BNICS[@]}"; do
if [[ ! "${nmcli_dev_status_list}" =~ $bond_nic\:unmanaged ]]; then
if [[ "${nmcli_dev_status_list}" =~ $bond_nic\:unmanaged ]]; then
unmanaged_bond=1
fi
if [[ "$unmanaged_bond" == 1 ]]; then