From d88738cf8be769842879cf791ec230af28d96811 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Thu, 14 Dec 2017 14:40:13 +0100 Subject: [PATCH] linux-4.9.68: Improve error message for existing kernel revision Include the names of the conflicting files in the error message. --- linux-4.9.68-193.bee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/linux-4.9.68-193.bee b/linux-4.9.68-193.bee index d8e6e768b..cfc4df71d 100755 --- a/linux-4.9.68-193.bee +++ b/linux-4.9.68-193.bee @@ -25,8 +25,9 @@ FULLKERNELVERSION="${KERNELVERSION}${KERNELLOCAL}" B=${S} -ls ${BEE_PKGDIR}/linux-[0-9].[0-9]*-${PKGREVISION}.x86_64.bee.* 2>/dev/null \ - && echo "A kernel with revision ${PKGREVISION} has already been build." && exit +same_revision_files=$(ls ${BEE_PKGDIR}/linux-[0-9].[0-9]*-${PKGREVISION}.x86_64.bee.* 2>/dev/null) \ + && echo "A kernel with revision ${PKGREVISION} has already been build: $same_revision_files" \ + && exit # aacraid # https://storage.microsemi.com/en-us/downloads/linux_source/linux_source_code/productid=aha-1000-8e&dn=microsemi+adaptec+hba+1000-8e.php