From 2a4d42ea289217edfa3d588158aeedff156760df Mon Sep 17 00:00:00 2001 From: Dmitrii Tochanskii Date: Wed, 13 Aug 2025 14:43:53 +0000 Subject: [PATCH] Fix #1 --- tlnxbuild.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tlnxbuild.sh b/tlnxbuild.sh index 3877ed9..ec9ad98 100755 --- a/tlnxbuild.sh +++ b/tlnxbuild.sh @@ -1,6 +1,9 @@ #!/bin/bash -cd $1 && \ -spectool -g --directory SOURCES $1.spec && \ -cp -av *.patch SOURCES && \ -dnf builddep -y $1.spec && \ +set -e +cd $1 +spectool -g --directory SOURCES $1.spec +if ls *.patch > /dev/null 2> /dev/null; then + cp -av *.patch SOURCES +fi +dnf builddep -y $1.spec rpmbuild --define "_topdir `pwd`" --define "debug_package %{nil}" --define "dist .tlnx0" -bb $1.spec