From 6d105f40c8ce52bfc3d09e038471a09702857de2 Mon Sep 17 00:00:00 2001 From: Saya Andy Date: Mon, 7 Sep 2026 11:26:27 +0700 Subject: fix: redirect prep block in build.sh from stdout into stderr --- build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'build.sh') diff --git a/build.sh b/build.sh index 7e32f3b..88b1ca8 100755 --- a/build.sh +++ b/build.sh @@ -44,7 +44,7 @@ done topdir="${work_dir}/rpmbuild" spec="${topdir}/SPECS/libcamera.spec" -if [[ ! -f ${spec} ]]; then +if [[ ! -f ${spec} ]]; then { rm -rf "${work_dir}" mkdir -p "${work_dir}" "${topdir}"/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS} @@ -79,6 +79,7 @@ if [[ ! -f ${spec} ]]; then echo "failed to add the .${suffix} release suffix to ${spec}" >&2 exit 1 } +} >&2 fi mapfile -t rpm_files < <(rpmspec -q --queryformat '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}.rpm\n' "${spec}") -- cgit v1.3.1+17