Fix: Quote variable

This commit is contained in:
Narvin Singh 2020-12-29 20:26:56 -05:00
parent 5a6f16ea5b
commit 410fbe2477

2
xrsbd
View File

@ -79,7 +79,7 @@ main() {
# For each module in the list, if the module file exists then source it, add
# its name to the ordered array, and call its function and cache the value
IFS=', ' read -r -a mods <<< "${mod_list}"
for mod in ${mods[@]}; do
for mod in "${mods[@]}"; do
mod_file="${MOD_DIR}/${mod}"
if [[ -r "${mod_file}" ]]; then
# shellcheck source=/dev/null