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/common | |
parent | bedc62fdada9e0e7a67b82153b186689dda07145 (diff) | |
download | librebootfr-4e3505463eadffd9f1994f8ecaba9b1d693ec7bf.tar.gz librebootfr-4e3505463eadffd9f1994f8ecaba9b1d693ec7bf.zip |
Modify fd copying in printf calls for readability
Diffstat (limited to 'libs/common')
-rwxr-xr-x | libs/common | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/common b/libs/common index fd001a5d..750886db 100755 --- a/libs/common +++ b/libs/common @@ -157,7 +157,7 @@ file_checksum_check() { if ! [ -f "$checksum_path" ] then - printf '%s\n' 'Could not verify file checksum!' >&2 + printf 1>&2 '%s\n' 'Could not verify file checksum!' return 1 fi @@ -187,7 +187,7 @@ file_signature_check() { if ! [ -f "$signature_path" ] then - printf '%s\n' 'Could not verify file signature!' >&2 + printf 1>&2 '%s\n' 'Could not verify file signature!' return 1 fi @@ -383,7 +383,7 @@ requirements() { if [ -z "$requirement_path" ] then - printf '%s\n' "Missing requirement: $requirement" >&2 + printf 1>&2 '%s\n' "Missing requirement: $requirement" exit 1 fi done @@ -400,7 +400,7 @@ requirements_root() { if [ -z "$requirement_path" ] then - printf '%s\n' "Missing requirement: $requirement" >&2 + printf 1>&2 '%s\n' "Missing requirement: $requirement" exit 1 fi done @@ -429,8 +429,8 @@ execute_root() { local sudo=$( which sudo 2> /dev/null || true ) local arguments - printf '%s' 'Running command as root: ' >&2 - printf '%b\n' "$*" >&2 + printf 1>&2 '%s' 'Running command as root: ' + printf 1>&2 '%b\n' "$*" if ! [ -z "$sudo" ] then |