aboutsummaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorAndrew Robbins <contact@andrewrobbins.info>2019-04-13 21:47:52 -0400
committerAndrew Robbins <contact@andrewrobbins.info>2019-04-13 21:47:52 -0400
commitb7fcc477a051a0f09f36251e71da50007de99aad (patch)
treeec977f225be74a6cfdc89117dcde38fa96b6e945 /libs
parentf93de19bc68aa27c56449d12f7fd54cba6034ce8 (diff)
downloadlibrebootfr-b7fcc477a051a0f09f36251e71da50007de99aad.tar.gz
librebootfr-b7fcc477a051a0f09f36251e71da50007de99aad.zip
libs/project: Don't fail with project_action_check
project_action_check() is there to avoid redundant actions from being performed (e.g., if SeaBIOS is already built, don't build it again). Since this is its primary purpose, we want to avoid erroring out when it returns with a non-zero return code. This addresses issue #614
Diffstat (limited to 'libs')
-rwxr-xr-xlibs/project4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/project b/libs/project
index 25d6ca74..75e84ed5 100755
--- a/libs/project
+++ b/libs/project
@@ -143,7 +143,9 @@ project_action() {
shift
local arguments="$*"
- project_action_check "$action" "$project" "$@"
+ if project_action_check "$action" "$project" "$@"; then
+ return 0
+ fi
printf '%s\n\n' "Project $project $action (with ${arguments:-no argument})"