From 547be866932ec92ca818a7ed661519dd9be598d5 Mon Sep 17 00:00:00 2001 From: Andrew Robbins Date: Wed, 12 Jul 2017 12:32:14 -0400 Subject: 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. --- libreboot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libreboot') 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 -- cgit v1.2.3-70-g09d2