aboutsummaryrefslogtreecommitdiff
path: root/libs/project
diff options
context:
space:
mode:
Diffstat (limited to 'libs/project')
-rwxr-xr-xlibs/project10
1 files changed, 8 insertions, 2 deletions
diff --git a/libs/project b/libs/project
index fb986f89..dfb745a0 100755
--- a/libs/project
+++ b/libs/project
@@ -149,7 +149,13 @@ project_action() {
printf '%s\n\n' "Project $project $action (with ${arguments:-no argument})"
- if (set +e; "$action" "$@"); then
+ (
+ set +e
+
+ "$action" "$@"
+ )
+
+ if [[ $? -eq 0 ]]; then
printf '\n%s\n' "Project $project $action (with ${arguments:-no argument}) completed"
else
printf 1>&2 '\n%s\n' "Project $project $action (with ${arguments:-no argument}) failed"
@@ -789,7 +795,7 @@ project_update_check_git() {
requirements "git"
- if ! git_project_check "$repository"
+ if git_project_check "$repository"
then
# Git repository should always be updated (even if upstream didn't progress).
# For instance, this is useful for testing new versions of patches without changing revision.