aboutsummaryrefslogtreecommitdiff
path: root/libs/project
diff options
context:
space:
mode:
authorAndrew Robbins <contact@andrewrobbins.info>2019-02-22 00:47:19 -0500
committerAndrew Robbins <contact@andrewrobbins.info>2019-02-22 00:47:19 -0500
commitb552224354ba44e7a615e80b1f1173b015bbc832 (patch)
tree2535f96870343234823a475171e9edfba5a76d21 /libs/project
parentf27fed3d49d09aa1dc0e2acd462fba48e6adbbe2 (diff)
downloadlibrebootfr-b552224354ba44e7a615e80b1f1173b015bbc832.tar.gz
librebootfr-b552224354ba44e7a615e80b1f1173b015bbc832.zip
Don't output header/footer to stderr unless necessary
Diffstat (limited to 'libs/project')
-rwxr-xr-xlibs/project5
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/project b/libs/project
index a073beef..fc7ee232 100755
--- a/libs/project
+++ b/libs/project
@@ -152,12 +152,13 @@ project_action() {
project_action_check "$action" "$project" "$@"
- printf 1>&2 '%s\n' "Project $project $action (with ${arguments:-no argument})"
+ printf '%s\n' "Project $project $action (with ${arguments:-no argument})"
if "$action" "$@"; then
- printf 1>&2 '\n%s\n' "Project $project $action (with ${arguments:-no argument}) completed"
+ 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"
+
return 1
fi
)