mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-17 12:46:27 +00:00
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:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user