diff options
author | Raul E Rangel <rrangel@chromium.org> | 2023-04-04 16:13:57 -0600 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-04-25 04:42:52 +0100 |
commit | 8a94952d5f7208e6fd75e4eef6c937c58bc8775e (patch) | |
tree | 504b3b083c35fa1c2e72f787702cbd6aa211d777 | |
parent | Fix incorrect cp when using ROOT (diff) | |
download | build-docbook-catalog-master.tar.gz build-docbook-catalog-master.tar.bz2 build-docbook-catalog-master.zip |
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-x | build-docbook-catalog | 6 |
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 |