From ad0c8e07f51952fce53262f72c5687e763dffd32 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Mon, 5 Sep 2022 12:38:01 -0600 Subject: [PATCH] reassign array prior to element check --- functions/update_apps.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/functions/update_apps.sh b/functions/update_apps.sh index a95b67ef..1ad97377 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -42,10 +42,9 @@ do fi ((index++)) done - +array=("${array[@]}") [[ ${#array[@]} == 0 ]] && return -array=("${array[@]}") it=0 while_count=0