3
0
Fork 0
forked from mirrors/nixpkgs

find-xml-catalogues: Ensure XML_CATALOG_FILES is defined

This commit is contained in:
John Ericson 2019-10-31 17:57:33 +00:00
parent 2811b032d6
commit 7eecf4f8fb

View file

@ -11,12 +11,12 @@ addXMLCatalogs () {
done
}
if [ -z "$libxmlHookDone" ]; then
if [ -z "${libxmlHookDone-}" ]; then
libxmlHookDone=1
# Set up XML_CATALOG_FILES. An empty initial value prevents
# xmllint and xsltproc from looking in /etc/xml/catalog.
export XML_CATALOG_FILES
export XML_CATALOG_FILES=''
if [ -z "$XML_CATALOG_FILES" ]; then XML_CATALOG_FILES=" "; fi
addEnvHooks "$hostOffset" addXMLCatalogs
fi