aboutsummaryrefslogtreecommitdiff
path: root/tools/boot-keys
diff options
context:
space:
mode:
authorLeah Rowe <info@minifree.org>2017-06-23 15:07:44 +0000
committerGogs <gogitservice@gmail.com>2017-06-23 15:07:44 +0000
commit363455950f9c351b0a87a31fb5641a635bd352a7 (patch)
tree430ac9d4cad3058b5ed6703fb27e6bd5c66b21bd /tools/boot-keys
parentb2e04a9535832bc682ca69f34b13583ac74d50dc (diff)
parent46c6ca3b9ee3e545a41b3b0f488885b20a1c65b5 (diff)
downloadlibrebootfr-363455950f9c351b0a87a31fb5641a635bd352a7.tar.gz
librebootfr-363455950f9c351b0a87a31fb5641a635bd352a7.zip
Merge branch 'printf-changes' of kragle/libreboot into master
Diffstat (limited to 'tools/boot-keys')
-rwxr-xr-xtools/boot-keys/boot-keys10
-rwxr-xr-xtools/boot-keys/boot-keys-helper4
2 files changed, 7 insertions, 7 deletions
diff --git a/tools/boot-keys/boot-keys b/tools/boot-keys/boot-keys
index c446bd44..c79bac2b 100755
--- a/tools/boot-keys/boot-keys
+++ b/tools/boot-keys/boot-keys
@@ -24,7 +24,7 @@ generate() {
if [ -z "$type" ]
then
- printf "Unable to determine keys type\n" >&2
+ env printf '%s\n' 'Unable to determine keys type' >&2
return 1
fi
@@ -47,11 +47,11 @@ sign() {
if [ -z "$type" ]
then
- printf "Unable to determine keys type\n" >&2
+ env printf '%s\n' 'Unable to determine keys type' >&2
return 1
fi
- echo "$prepare_files" | while read install_path
+ env printf '%s\n' "$prepare_files" | while read install_path
do
case $type in
"cros-firmware")
@@ -90,11 +90,11 @@ verify() {
if [ -z "$type" ]
then
- printf "Unable to determine keys type\n" >&2
+ env printf '%s\n' 'Unable to determine keys type' >&2
return 1
fi
- echo "$prepare_files" | while read install_path
+ env printf '%s\n' "$prepare_files" | while read install_path
do
case $type in
"cros-firmware")
diff --git a/tools/boot-keys/boot-keys-helper b/tools/boot-keys/boot-keys-helper
index 5046cbfb..05739bbe 100755
--- a/tools/boot-keys/boot-keys-helper
+++ b/tools/boot-keys/boot-keys-helper
@@ -15,7 +15,7 @@ boot_keys_cros() {
if ! [ -x "$cros_script_path" ]
then
- printf "$cros_script script missing from cros-scripts install" >&2
+ env printf '%s' "$cros_script script missing from cros-scripts install" >&2
return 1
fi
@@ -45,7 +45,7 @@ boot_keys_files_install_path() {
ifs_save=$IFS
IFS=$'\n'
- for argument in $( echo "$helper_arguments" )
+ for argument in $( env printf '%s\n' "$helper_arguments" )
do
(
IFS=$ifs_save