aboutsummaryrefslogtreecommitdiff
path: root/libs/project
diff options
context:
space:
mode:
authorAndrew Robbins <contact@andrewrobbins.info>2019-10-30 23:36:55 -0500
committerAndrew Robbins <contact@andrewrobbins.info>2019-11-02 21:36:36 -0500
commit0c736cf027a90c0540834c53b957b8c577591c91 (patch)
treea8fb3a5584e30288ebd9fa04516fa36eafb1bbdf /libs/project
parentb7b39afdd822e582140c3767e71efd40fd4875ae (diff)
downloadlibrebootfr-0c736cf027a90c0540834c53b957b8c577591c91.tar.gz
librebootfr-0c736cf027a90c0540834c53b957b8c577591c91.zip
Fail early for project actions
Fails immediately if any command returns non-zero within a project action.
Diffstat (limited to 'libs/project')
-rwxr-xr-xlibs/project2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/project b/libs/project
index 673689ee..d884556d 100755
--- a/libs/project
+++ b/libs/project
@@ -217,6 +217,8 @@ project_action() {
printf '%s\n' "Project $project $action (with ${arguments:-no argument})"
(
+ set -e
+
"$action" "$@"
)