aboutsummaryrefslogtreecommitdiff
path: root/projects/libreboot-sources
diff options
context:
space:
mode:
authorAndrew Robbins <contact@andrewrobbins.info>2017-10-25 23:11:15 -0400
committerAndrew Robbins <contact@andrewrobbins.info>2017-10-28 23:29:59 -0400
commit4e3505463eadffd9f1994f8ecaba9b1d693ec7bf (patch)
tree0d9f92579114c27a7d04c5116479ed1dcf8b317e /projects/libreboot-sources
parentbedc62fdada9e0e7a67b82153b186689dda07145 (diff)
downloadlibrebootfr-4e3505463eadffd9f1994f8ecaba9b1d693ec7bf.tar.gz
librebootfr-4e3505463eadffd9f1994f8ecaba9b1d693ec7bf.zip
Modify fd copying in printf calls for readability
Diffstat (limited to 'projects/libreboot-sources')
-rwxr-xr-xprojects/libreboot-sources/install/libreboot-sources14
1 files changed, 7 insertions, 7 deletions
diff --git a/projects/libreboot-sources/install/libreboot-sources b/projects/libreboot-sources/install/libreboot-sources
index d836054d..162aef32 100755
--- a/projects/libreboot-sources/install/libreboot-sources
+++ b/projects/libreboot-sources/install/libreboot-sources
@@ -21,12 +21,12 @@ SOURCES="sources"
ARCHIVE="tar.xz"
usage() {
- printf '%s\n' "$executable [action] [sources path] (extract path)" >&2
+ printf 1>&2 '%s\n' "$executable [action] [sources path] (extract path)"
- printf '\n%s\n' 'Actions:' >&2
- printf '%s\n' ' extract - Extract build system sources' >&2
- printf '%s\n' ' copy - Copy projects sources' >&2
- printf '%s\n' ' prepare - Extract and copy sources' >&2
+ printf 1>&2 '\n%s\n' 'Actions:'
+ printf 1>&2 '%s\n' ' extract - Extract build system sources'
+ printf 1>&2 '%s\n' ' copy - Copy projects sources'
+ printf 1>&2 '%s\n' ' prepare - Extract and copy sources'
printf '\n%s\n' ' When no extract path is provided, sources are extracted in the current'
printf '%s\n' ' directory.'
@@ -49,7 +49,7 @@ extract() {
archive=$( find $sources_path -name "$BUILD_SYSTEM-sources.$ARCHIVE" || true )
if [ -z "$archive" ]
then
- printf '%s\n' "Finding $BUILD_SYSTEM sources archive failed!" >&2
+ printf 1>&2 '%s\n' "Finding $BUILD_SYSTEM sources archive failed!"
usage
exit 1
fi
@@ -96,7 +96,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