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
This commit is contained in:
Bart Van Assche
2020-05-11 20:36:04 +00:00
parent 04b4ee34fe
commit 9429a9930f
+2 -6
View File
@@ -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"