From 6ffb5a53faf63f828bbe7cbbda14c9d875a61bde Mon Sep 17 00:00:00 2001 From: Mihai Moldovan Date: Wed, 1 Apr 2015 07:52:00 +0200 Subject: bin/build-rpm-package: save old input field separator value and re-set to newline only. --- bin/build-rpm-package | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/build-rpm-package b/bin/build-rpm-package index f088bb9..ba4c23b 100755 --- a/bin/build-rpm-package +++ b/bin/build-rpm-package @@ -302,6 +302,10 @@ create_mock_config () { # MOCK_BASE CUSTOM_REPO COMPONENT TARGET exit -1 fi + # Save old input field separator value and set it to newline only. + OLDIFS="${IFS}" + IFS="$(printf '\n')" + # Fetch the requested lines from ${CUSTOM_REPO} and store them in an array. typeset -a extra_repo typeset -i FETCH_SECTION=0 -- cgit v1.2.3