diff options
author | Swift Geek <swiftgeek@gmail.com> | 2019-03-29 08:36:21 +0000 |
---|---|---|
committer | Gogs <gogitservice@gmail.com> | 2019-03-29 08:36:21 +0000 |
commit | 8d86dd3fbd6f9f7582ae30d886bd78805e51b450 (patch) | |
tree | f4d0cd5e9b9e41762f14367d543c101f4cf316c3 /libreboot | |
parent | 335da90531ea47d4f4a7c515503978f7af456439 (diff) | |
parent | 9474eba10e1a31995abb72b43659b80c2dd9754d (diff) | |
download | librebootfr-8d86dd3fbd6f9f7582ae30d886bd78805e51b450.tar.gz librebootfr-8d86dd3fbd6f9f7582ae30d886bd78805e51b450.zip |
Merge branch 'actions' of and_who/libreboot into master
Diffstat (limited to 'libreboot')
-rwxr-xr-x | libreboot | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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<nogeneric; ++i)); do tool_actions+=("${TOOL_ACTIONS_GENERIC[i]}") if [[ "${TOOL_ACTIONS_GENERIC[i]}" == !(${ignore// /|}) ]]; then @@ -172,12 +171,11 @@ libreboot_setup_tool_actions() { } libreboot_setup_project_actions() { - local -i project_actions_count="${#PROJECT_ACTIONS_GENERIC[@]}" local ignore="${PROJECT_ACTIONS_GENERIC_IGNORE_CHECK[*]}" local -a project_actions - for ((i=0; i<"$project_actions_count"; i++)); do + for ((i=0, nogeneric=${#PROJECT_ACTIONS_GENERIC[@]}; i<nogeneric; ++i)); do project_actions+=("${PROJECT_ACTIONS_GENERIC[i]}") if [[ "${PROJECT_ACTIONS_GENERIC[i]}" == !(${ignore// /|}) ]]; then |