From 4e8291d2c71246bcd29d2163590f583da0a55afe Mon Sep 17 00:00:00 2001 From: overdodactyl Date: Wed, 21 Nov 2018 12:45:27 -0700 Subject: [PATCH] updater.sh improve updater_userjs loop --- updater.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/updater.sh b/updater.sh index b4e0b9a..cccbf41 100755 --- a/updater.sh +++ b/updater.sh @@ -309,11 +309,10 @@ update_userjs () { cp user.js userjs_diffs/past_user.js fi backup_file user.js - if [ "$OVERRIDE" != "none" ]; then - IFS=',' read -ra FILES <<< "$OVERRIDE" - for i in "${FILES[@]}"; do - add_override "$i" - done + if [ "$OVERRIDE" != "none" ]; then + while IFS=',' read -ra FILE; do + add_override "$FILE" + done <<< "$OVERRIDE" fi }