user.js

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 3edc48da56ad77c156f108a4889834d033ddc38f
parent 868882ae3321c66bf979e455b0ab4731bdb22f71
Author: Matt Loberg <mloberg@users.noreply.github.com>
Date:   Tue, 26 May 2020 06:54:55 -0500

fix updater.sh when dealing with multiple overrides (#947)

thanks @mloberg !


Diffstat:
Mupdater.sh | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/updater.sh b/updater.sh @@ -2,7 +2,7 @@ ## ghacks-user.js updater for macOS and Linux -## version: 2.5 +## version: 2.6 ## Author: Pat Johnson (@overdodactyl) ## Additional contributors: @earthlng, @ema-pe, @claustromaniac @@ -313,8 +313,10 @@ update_userjs () { # apply overrides if [ "$SKIPOVERRIDE" = false ]; then - while IFS=',' read -ra FILE; do - add_override "$FILE" + while IFS=',' read -ra FILES; do + for FILE in "${FILES[@]}"; do + add_override "$FILE" + done done <<< "$OVERRIDE" fi