aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Robbins <contact@andrewrobbins.info>2019-04-25 23:34:29 -0400
committerAndrew Robbins <contact@andrewrobbins.info>2019-04-26 23:17:17 -0400
commit8c080431797cad48d5135ba5b2e5561a2ff81967 (patch)
tree07df0597589ad2f2661d8e892008b149e4c7db1c
parent7ead9b132dd6f55c3268e479aa01dcdb8280bdf9 (diff)
downloadlibrebootfr-8c080431797cad48d5135ba5b2e5561a2ff81967.tar.gz
librebootfr-8c080431797cad48d5135ba5b2e5561a2ff81967.zip
libs/project: Remove extraneous newlines in header/footer
The extra newlines make actions with no output look strange.
-rwxr-xr-xlibs/project6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/project b/libs/project
index e5088265..8f4ef233 100755
--- a/libs/project
+++ b/libs/project
@@ -150,7 +150,7 @@ project_action() {
(
set +e
- printf '%s\n\n' "Project $project $action (with ${arguments:-no argument})"
+ printf '%s\n' "Project $project $action (with ${arguments:-no argument})"
(
"$action" "$@"
@@ -159,9 +159,9 @@ project_action() {
local -i exit_status=$?
if ((exit_status)); then
- printf 1>&2 '\n%s\n' "Project $project $action (with ${arguments:-no argument}) failed"
+ printf 1>&2 '%s\n' "Project $project $action (with ${arguments:-no argument}) failed"
else
- printf '\n%s\n' "Project $project $action (with ${arguments:-no argument}) completed"
+ printf '%s\n' "Project $project $action (with ${arguments:-no argument}) completed"
fi
exit $exit_status