diff options
author | Andrew Robbins <contact@andrewrobbins.info> | 2017-07-12 12:32:14 -0400 |
---|---|---|
committer | Andrew Robbins <contact@andrewrobbins.info> | 2017-07-14 15:16:05 -0400 |
commit | 547be866932ec92ca818a7ed661519dd9be598d5 (patch) | |
tree | 646cb7412cd51cdfe6da65a6d6deeb49df97f298 /libreboot | |
parent | 8c7d21cbf45a4279dcffae95ce626a0dc9006a30 (diff) | |
download | librebootfr-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-x | libreboot | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |