From 8a94952d5f7208e6fd75e4eef6c937c58bc8775e Mon Sep 17 00:00:00 2001 From: Raul E Rangel Date: Tue, 4 Apr 2023 16:13:57 -0600 Subject: Fix noisy find command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Closes: https://github.com/gentoo/build-docbook-catalog/pull/1 Signed-off-by: Sam James --- build-docbook-catalog | 6 ++++-- 1 file 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 -- cgit v1.2.3-65-gdbad