aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaul E Rangel <rrangel@chromium.org>2023-04-04 16:13:57 -0600
committerSam James <sam@gentoo.org>2023-04-25 04:42:52 +0100
commit8a94952d5f7208e6fd75e4eef6c937c58bc8775e (patch)
tree504b3b083c35fa1c2e72f787702cbd6aa211d777
parentFix incorrect cp when using ROOT (diff)
downloadbuild-docbook-catalog-master.tar.gz
build-docbook-catalog-master.tar.bz2
build-docbook-catalog-master.zip
Fix noisy find commandHEADv2.4master
We weren't using nullglob, so the wildcard parameter was incorrectly getting passed to `find`. + pushd /build/arm64-generic//usr/share/sgml/docbook + mapfile -d '' DTDS ++ find xml-dtd-4.3/ xml-dtd-4.5/ -name docbookx.dtd -print0 + mapfile -d '' SIMPLE_DTDS ++ find 'xml-simple-dtd-*/' -name sdocbook.dtd -print0 find: ‘xml-simple-dtd-*/’: No such file or directory + popd Signed-off-by: Raul E Rangel <rrangel@chromium.org> Closes: https://github.com/gentoo/build-docbook-catalog/pull/1 Signed-off-by: Sam James <sam@gentoo.org>
-rwxr-xr-xbuild-docbook-catalog6
1 files changed, 4 insertions, 2 deletions
diff --git a/build-docbook-catalog b/build-docbook-catalog
index 2275703..f5995da 100755
--- a/build-docbook-catalog
+++ b/build-docbook-catalog
@@ -137,8 +137,10 @@ set_dtds() {
local d=${ROOT}${DOCBOOKDIR}
if [[ -d ${d} ]] ; then
pushd "${d}" >/dev/null || return 1
- mapfile -d $'\0' DTDS < <(find xml-dtd-*/ -name docbookx.dtd -print0)
- mapfile -d $'\0' SIMPLE_DTDS < <(find xml-simple-dtd-*/ -name sdocbook.dtd -print0)
+ shopt -s nullglob
+ DTDS=( xml-dtd-*/docbookx.dtd )
+ SIMPLE_DTDS=( xml-simple-dtd-*/sdocbook.dtd )
+ shopt -u nullglob
popd >/dev/null || return 1
fi