From 56c93461865222e50915e380b99a34fd4890170e Mon Sep 17 00:00:00 2001 From: Andrew Robbins Date: Thu, 28 Mar 2019 15:25:33 -0400 Subject: libreboot: Set max loop iteration in for loop --- libreboot | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libreboot b/libreboot index 2f3a3ffe..30ea9f63 100755 --- a/libreboot +++ b/libreboot @@ -155,12 +155,11 @@ libreboot_setup_include() { } libreboot_setup_tool_actions() { - local -i tool_actions_count="${#TOOL_ACTIONS_GENERIC[@]}" local ignore="${TOOL_ACTIONS_GENERIC_IGNORE_CHECK[*]}" local -a tool_actions - for ((i=0; i<"$tool_actions_count"; i++)); do + for ((i=0, nogeneric=${#TOOL_ACTIONS_GENERIC[@]}; i