From 9474eba10e1a31995abb72b43659b80c2dd9754d Mon Sep 17 00:00:00 2001 From: Andrew Robbins Date: Thu, 28 Mar 2019 14:33:52 -0400 Subject: let's prefer pre-increment The "let" builtin returns 1 if it's given an argument that evaluates to zero. --- libs/project | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs') 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 -- cgit v1.2.3-70-g09d2