aboutsummaryrefslogtreecommitdiff
path: root/libreboot
diff options
context:
space:
mode:
authorAndrew Robbins <contact@andrewrobbins.info>2017-07-12 12:32:14 -0400
committerAndrew Robbins <contact@andrewrobbins.info>2017-07-14 15:16:05 -0400
commit547be866932ec92ca818a7ed661519dd9be598d5 (patch)
tree646cb7412cd51cdfe6da65a6d6deeb49df97f298 /libreboot
parent8c7d21cbf45a4279dcffae95ce626a0dc9006a30 (diff)
downloadlibrebootfr-547be866932ec92ca818a7ed661519dd9be598d5.tar.gz
librebootfr-547be866932ec92ca818a7ed661519dd9be598d5.zip
Rely less on word splitting by using arrays
Arrays are just a better idea for storing multiple strings than relying on word splitting. Consequently, several global variables in libs/* were switched to arrays and any references to said variables modified to expand to the arrays' elements.
Diffstat (limited to 'libreboot')
-rwxr-xr-xlibreboot4
1 files changed, 2 insertions, 2 deletions
diff --git a/libreboot b/libreboot
index ce3735d0..4a3aceb3 100755
--- a/libreboot
+++ b/libreboot
@@ -26,7 +26,7 @@ libreboot_usage() {
printf '\n%s\n' 'Generic project actions:' >&2
- for action in ${PROJECT_ACTIONS_GENERIC}; do
+ for action in "${PROJECT_ACTIONS_GENERIC[@]}"; do
printf '%s\n' " ${action}" >&2
done
@@ -46,7 +46,7 @@ libreboot_usage() {
printf '\n%s\n' 'Generic tool actions:' >&2
- for action in ${TOOL_ACTIONS_GENERIC}; do
+ for action in "${TOOL_ACTIONS_GENERIC[@]}"; do
printf '%s\n' " ${action}" >&2
done