[X2Go-Commits] [buildscripts] 01/07: bin/build-rpm-package: save old input field separator value and re-set to newline only.
git-admin at x2go.org
git-admin at x2go.org
Wed Apr 1 08:45:25 CEST 2015
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository buildscripts.
commit 6ffb5a53faf63f828bbe7cbbda14c9d875a61bde
Author: Mihai Moldovan <ionic at ionic.de>
Date: Wed Apr 1 07:52:00 2015 +0200
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
--
Alioth's /srv/git/code.x2go.org/buildscripts.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/buildscripts.git
More information about the x2go-commits
mailing list