diff options
author | Andrew Robbins <contact@andrewrobbins.info> | 2019-03-28 14:33:52 -0400 |
---|---|---|
committer | Andrew Robbins <contact@andrewrobbins.info> | 2019-03-28 15:48:07 -0400 |
commit | 9474eba10e1a31995abb72b43659b80c2dd9754d (patch) | |
tree | f4d0cd5e9b9e41762f14367d543c101f4cf316c3 | |
parent | 56c93461865222e50915e380b99a34fd4890170e (diff) | |
download | librebootfr-9474eba10e1a31995abb72b43659b80c2dd9754d.tar.gz librebootfr-9474eba10e1a31995abb72b43659b80c2dd9754d.zip |
let's prefer pre-increment
The "let" builtin returns 1 if it's given an argument that evaluates
to zero.
-rwxr-xr-x | libs/project | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/project b/libs/project index 083cfcd8..f2692cd6 100755 --- a/libs/project +++ b/libs/project @@ -80,7 +80,7 @@ project_dependencies_check() { 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 @@ -99,7 +99,7 @@ project_dependencies_sources_check() { local -a dependency=(${dependencies[i]}) project_sources_directory_filled_check "${dependency[0]}" || - let missing++ + let ++missing done return $missing |