commit 1b8437319660ed7c69b84ea81032458e615ff3c6 Author: Mingming Cao Date: Thu May 20 10:56:22 2021 -0700 Fix checking HCNID array size at boot time In commit 0b59d4a372aa266caa75f3b6a253b8f5aeaf3802 it checks the HCNID array empty to avoid cleanup non-HNV related network profiles after reboot. hcnmgr scan run log shows checking the number of HCNID array elements has not done properly. Signed-off-by: Mingming Cao diff --git a/scripts/hcnmgr b/scripts/hcnmgr index f80429d..8b0efc7 100644 --- a/scripts/hcnmgr +++ b/scripts/hcnmgr @@ -605,7 +605,7 @@ scanhcn() { done fi - if [ ${HcnIds[@]} -eq 0 ]; then + if [ ${#HcnIds[@]} -eq 0 ]; then hcnlog DEBUG "scanhcn: scan for hybrid virtual network finished" return $E_SUCCESS fi