aboutsummaryrefslogtreecommitdiff
path: root/tools/boot-keys
diff options
context:
space:
mode:
authorAndrew Robbins <contact@andrewrobbins.info>2017-10-26 21:45:42 -0400
committerAndrew Robbins <contact@andrewrobbins.info>2017-10-28 23:30:03 -0400
commit5c1fe562d8044249f5830df826544bc72ecb41b2 (patch)
treee86f14dfddc867e8a8abdfa31713edcc2cf87c3d /tools/boot-keys
parentc7377e3eb74a73874f9d2253083b3ae952156ac8 (diff)
downloadlibrebootfr-5c1fe562d8044249f5830df826544bc72ecb41b2.tar.gz
librebootfr-5c1fe562d8044249f5830df826544bc72ecb41b2.zip
Remove unnecessary spaces in command substitutions
This is likely one of the very last changes necessary to make the Libreboot build system more cohesive in appearance. Hopefully from this point forward it won't be as readily apparent as to who wrote which parts of the build system (i.e. won't look like a patchwork quilt any longer).
Diffstat (limited to 'tools/boot-keys')
-rwxr-xr-xtools/boot-keys/boot-keys14
-rwxr-xr-xtools/boot-keys/boot-keys-helper10
2 files changed, 12 insertions, 12 deletions
diff --git a/tools/boot-keys/boot-keys b/tools/boot-keys/boot-keys
index 5d133742..4c40bdf3 100755
--- a/tools/boot-keys/boot-keys
+++ b/tools/boot-keys/boot-keys
@@ -20,7 +20,7 @@ usage() {
}
generate() {
- local type=$( boot_keys_type "$@" )
+ local type=$(boot_keys_type "$@")
if [[ -z "$type" ]]
then
@@ -38,8 +38,8 @@ generate() {
sign() {
local project=$1
- local prepare_files=$( boot_keys_files "$@" )
- local type=$( boot_keys_type "$@" )
+ local prepare_files=$(boot_keys_files "$@")
+ local type=$(boot_keys_type "$@")
local install_path
local firmware_path
local kernel_path
@@ -60,7 +60,7 @@ sign() {
boot_keys_cros "$type-prepare" "sign" "$firmware_path"
;;
"cros-kernel")
- media=$( project_action "media" "$@" )
+ media=$(project_action "media" "$@")
for medium in $media
do
@@ -81,8 +81,8 @@ sign() {
verify() {
local project=$1
- local prepare_files=$( boot_keys_files "$@" )
- local type=$( boot_keys_type "$@" )
+ local prepare_files=$(boot_keys_files "$@")
+ local type=$(boot_keys_type "$@")
local install_path
local firmware_path
local kernel_path
@@ -103,7 +103,7 @@ verify() {
boot_keys_cros "$type-prepare" "verify" "$firmware_path"
;;
"cros-kernel")
- media=$( project_action "media" "$@" )
+ media=$(project_action "media" "$@")
for medium in $media
do
diff --git a/tools/boot-keys/boot-keys-helper b/tools/boot-keys/boot-keys-helper
index df53ec5b..464638b9 100755
--- a/tools/boot-keys/boot-keys-helper
+++ b/tools/boot-keys/boot-keys-helper
@@ -9,8 +9,8 @@ boot_keys_cros() {
local cros_script=$1
shift
- local vboot_tools_path=$( project_install_path "vboot" "tools" )
- local cros_scripts_path=$( project_install_path "cros-scripts" )
+ local vboot_tools_path=$(project_install_path "vboot" "tools")
+ local cros_scripts_path=$(project_install_path "cros-scripts")
local cros_script_path="$cros_scripts_path/$cros_script"
if ! [[ -x "$cros_script_path" ]]
@@ -34,7 +34,7 @@ boot_keys_files_install_path() {
local argument
local ifs_save
- helper_arguments=$( project_action_helper "arguments" "$project" "$@" )
+ helper_arguments=$(project_action_helper "arguments" "$project" "$@")
if [[ $? -ne 0 ]] || [[ -z "$helper_arguments" ]]
@@ -45,7 +45,7 @@ boot_keys_files_install_path() {
ifs_save=$IFS
IFS=$'\n'
- for argument in $( printf '%s\n' "$helper_arguments" )
+ for argument in $(printf '%s\n' "$helper_arguments")
do
(
IFS=$ifs_save
@@ -63,7 +63,7 @@ boot_keys_files() {
local project=$1
shift
- local cros_scripts_path=$( project_install_path "cros-scripts" )
+ local cros_scripts_path=$(project_install_path "cros-scripts")
local cros_boot_keys="$cros_scripts_path/cros-boot-keys"
project_action_arguments_verify_recursive "install" "$project" "$@"