From b552224354ba44e7a615e80b1f1173b015bbc832 Mon Sep 17 00:00:00 2001 From: Andrew Robbins Date: Fri, 22 Feb 2019 00:47:19 -0500 Subject: Don't output header/footer to stderr unless necessary --- libs/project | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libs/project') 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 ) -- cgit v1.2.3-70-g09d2