diff options
author | Andrew Robbins <contact@andrewrobbins.info> | 2019-04-13 21:47:52 -0400 |
---|---|---|
committer | Andrew Robbins <contact@andrewrobbins.info> | 2019-04-13 21:47:52 -0400 |
commit | b7fcc477a051a0f09f36251e71da50007de99aad (patch) | |
tree | ec977f225be74a6cfdc89117dcde38fa96b6e945 | |
parent | f93de19bc68aa27c56449d12f7fd54cba6034ce8 (diff) | |
download | librebootfr-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
-rwxr-xr-x | libs/project | 4 |
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})" |