diff options
author | Andrew Robbins <contact@andrewrobbins.info> | 2017-10-25 23:11:15 -0400 |
---|---|---|
committer | Andrew Robbins <contact@andrewrobbins.info> | 2017-10-28 23:29:59 -0400 |
commit | 4e3505463eadffd9f1994f8ecaba9b1d693ec7bf (patch) | |
tree | 0d9f92579114c27a7d04c5116479ed1dcf8b317e /libs/tool | |
parent | bedc62fdada9e0e7a67b82153b186689dda07145 (diff) | |
download | librebootfr-4e3505463eadffd9f1994f8ecaba9b1d693ec7bf.tar.gz librebootfr-4e3505463eadffd9f1994f8ecaba9b1d693ec7bf.zip |
Modify fd copying in printf calls for readability
Diffstat (limited to 'libs/tool')
-rwxr-xr-x | libs/tool | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -79,7 +79,7 @@ tool_action() { if ! tool_check "$tool" then - printf '%s\n' "Tool $tool check failed" >&2 + printf 1>&2 '%s\n' "Tool $tool check failed" return 1 fi @@ -97,7 +97,7 @@ tool_action() { return 0 fi - printf '%s\n' "Tool $tool $action (with ${arguments:-no argument})" >&2 + printf 1>&2 '%s\n' "Tool $tool $action (with ${arguments:-no argument})" ( set -e @@ -106,10 +106,10 @@ tool_action() { if [ $? -ne 0 ] then - printf '\n%s\n' "Tool $tool $action (with ${arguments:-no argument}) failed" >&2 + printf 1>&2 '\n%s\n' "Tool $tool $action (with ${arguments:-no argument}) failed" return 1 else - printf '\n%s\n' "Tool $tool $action (with ${arguments:-no argument}) completed" >&2 + printf 1>&2 '\n%s\n' "Tool $tool $action (with ${arguments:-no argument}) completed" fi ) } @@ -125,7 +125,7 @@ tool_action_check() { if ! tool_check "$tool" then - printf '%s\n' "Tool $tool check failed" >&2 + printf 1>&2 '%s\n' "Tool $tool check failed" return 1 fi @@ -162,7 +162,7 @@ tool_action_helper() { if ! tool_check "$tool" then - printf '%s\n' "Tool $tool check failed" >&2 + printf 1>&2 '%s\n' "Tool $tool check failed" return 1 fi |