aboutsummaryrefslogtreecommitdiff
path: root/libs/project
diff options
context:
space:
mode:
authorSwift Geek <swiftgeek@gmail.com>2019-03-29 08:36:21 +0000
committerGogs <gogitservice@gmail.com>2019-03-29 08:36:21 +0000
commit8d86dd3fbd6f9f7582ae30d886bd78805e51b450 (patch)
treef4d0cd5e9b9e41762f14367d543c101f4cf316c3 /libs/project
parent335da90531ea47d4f4a7c515503978f7af456439 (diff)
parent9474eba10e1a31995abb72b43659b80c2dd9754d (diff)
downloadlibrebootfr-8d86dd3fbd6f9f7582ae30d886bd78805e51b450.tar.gz
librebootfr-8d86dd3fbd6f9f7582ae30d886bd78805e51b450.zip
Merge branch 'actions' of and_who/libreboot into master
Diffstat (limited to 'libs/project')
-rwxr-xr-xlibs/project16
1 files changed, 6 insertions, 10 deletions
diff --git a/libs/project b/libs/project
index 70a76d71..f2692cd6 100755
--- a/libs/project
+++ b/libs/project
@@ -75,13 +75,12 @@ project_dependencies_check() {
local -a dependencies
mapfile -t dependencies < <(project_dependencies "$project" "$@")
- local -i count=${#dependencies[@]}
local -i missing=0
- for ((i = 0; i < count; i++)); do
+ for ((i = 0, nodeps = ${#dependencies[@]}; i < nodeps; ++i)); do
local -a dependency=(${dependencies[i]})
- project_check "${dependency[0]}" || let missing++
+ project_check "${dependency[0]}" || let ++missing
done
return $missing
@@ -94,14 +93,13 @@ project_dependencies_sources_check() {
local -a dependencies
mapfile -t dependencies < <(project_dependencies "$project" "$@")
- local -i count=${#dependencies[@]}
local -i missing=0
- for ((i = 0; i < count; i++)); do
+ for ((i = 0, nodeps = ${#dependencies[@]}; i < nodeps; ++i)); do
local -a dependency=(${dependencies[i]})
- project_sources_directory_filled_check "${dependency[0]}" \
- || let missing++
+ project_sources_directory_filled_check "${dependency[0]}" ||
+ let ++missing
done
return $missing
@@ -115,9 +113,7 @@ project_dependencies_action_arguments() {
local -a dependencies
mapfile -t dependencies < <(project_dependencies "$project" "$@")
- local -i count=${#dependencies[@]}
-
- for ((i = 0; i < count; i++)); do
+ for ((i = 0, nodeps = ${#dependencies[@]}; i < nodeps; ++i)); do
local -a dependency=(${dependencies[i]})
if project_function_check "${dependency[0]}" "$action"; then