nightly build: Improve support for CentOS 8.4

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9445 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2021-06-21 03:26:20 +00:00
parent 124edd624f
commit f3c567b4ce

View File

@@ -785,11 +785,7 @@ function download_and_extract_distro_rpm {
rpm2cpio "${kernel_downloads}/kernel-${kver}.src.rpm" |
cpio -i --make-directories --quiet &&
tar xaf "linux-${kver}"*.tar.* &&
if [ -e "linux-${kver}" ]; then
mv "linux-${kver}" ..
else
mv "linux-${kver}"*[^z] "../linux-${kver}"
fi
mv "linux-${kver}"*[^z] "../linux-${kver}"
;;
UEK)
rpm2cpio "${kernel_downloads}/kernel-uek-${kver}.src.rpm" |