aboutsummaryrefslogtreecommitdiffci
path: root/build.sh
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
authorGravatar Saya Andy <saya.andy@posteo.com> 2026-09-07 11:26:27 +0700
committerGravatar Saya Andy <saya.andy@posteo.com> 2026-09-07 11:26:27 +0700
commit6d105f40c8ce52bfc3d09e038471a09702857de2 (patch)
tree47ea0cbea36a6747349961b91f34e3f9ed3a86e1 /build.sh
parent01a5d7692c9de7d505918a5cbd9394ecbbc9b667 (diff)
downloadlibcamera-6d105f40c8ce52bfc3d09e038471a09702857de2.tar.gz
libcamera-6d105f40c8ce52bfc3d09e038471a09702857de2.zip
fix: redirect prep block in build.sh from stdout into stderrfedora-45-libcamera-sp12in1
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh3
1 files changed, 2 insertions, 1 deletions
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}")