scripts/kernel-functions: Revert r9445

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9469 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2021-06-25 03:13:47 +00:00
parent e98bc30e42
commit ce54530cd2

View File

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