From 9429a9930f668565047996085098ee792bdd91ed Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 11 May 2020 20:36:04 +0000 Subject: [PATCH] scripts/rhel-rpm-functions: Use ${...//...} instead of setting the IFS variable git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8899 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scripts/rhel-rpm-functions | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/rhel-rpm-functions b/scripts/rhel-rpm-functions index ffccee089..69e86aada 100644 --- a/scripts/rhel-rpm-functions +++ b/scripts/rhel-rpm-functions @@ -11,9 +11,7 @@ function get_srpm_urls() { distro="$1" releasever="$2" arch="$3" - IFS=. - set -- "$2" - unset IFS + set -- ${2//./ } releasevermajor="$1" releaseverminor="$2" @@ -67,9 +65,7 @@ function get_rpm_urls() { distro="$1" releasever="$2" arch="$3" - IFS=. - set -- "$2" - unset IFS + set -- ${2//./ } releasevermajor="$1" releaseverminor="$2"