aboutsummaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-rwxr-xr-xlibs/project8
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/project b/libs/project
index ea02293c..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"