From 410fbe247782472e908b41ad1da1b20e82aa820a Mon Sep 17 00:00:00 2001 From: Narvin Singh Date: Tue, 29 Dec 2020 20:26:56 -0500 Subject: [PATCH] Fix: Quote variable --- xrsbd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xrsbd b/xrsbd index 167c159..4c6176c 100755 --- a/xrsbd +++ b/xrsbd @@ -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