diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/patches_utils.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/patches_utils.sh b/scripts/patches_utils.sh index 2b79cd18406..1792a4ce5a6 100755 --- a/scripts/patches_utils.sh +++ b/scripts/patches_utils.sh @@ -10,9 +10,10 @@ PATCHES_HOME=scripts/patches # $1: name(s) of patches to call, separated by a colon # all other arguments are passed as is to the patches function call_patches() { - PATCHES=$1 - ARGS=${@:2} - + local PATCHES=$1 + local ARGS=${@:2} + local savedIFS=$IFS + IFS=',' for PATCH in $PATCHES; do #echo "calling $PATCHES_HOME/$PATCH.sh $ARGS" @@ -20,6 +21,7 @@ function call_patches() { echo "******** $PATCH *******" $PATCHES_HOME/$PATCH.sh $ARGS done + IFS=$savedIFS echo "" } |