diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2019-10-31 17:57:33 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2019-11-01 14:44:44 -0400 |
commit | 7eecf4f8fb288dcc4a32595036421bfcc38699e6 (patch) | |
tree | 37339025af808617ec5269fe873c988fcb4b8c77 /pkgs/build-support/setup-hooks | |
parent | 2811b032d639684d3983282e9d10d89f37d161d5 (diff) | |
download | nixlib-7eecf4f8fb288dcc4a32595036421bfcc38699e6.tar nixlib-7eecf4f8fb288dcc4a32595036421bfcc38699e6.tar.gz nixlib-7eecf4f8fb288dcc4a32595036421bfcc38699e6.tar.bz2 nixlib-7eecf4f8fb288dcc4a32595036421bfcc38699e6.tar.lz nixlib-7eecf4f8fb288dcc4a32595036421bfcc38699e6.tar.xz nixlib-7eecf4f8fb288dcc4a32595036421bfcc38699e6.tar.zst nixlib-7eecf4f8fb288dcc4a32595036421bfcc38699e6.zip |
find-xml-catalogues: Ensure XML_CATALOG_FILES is defined
Diffstat (limited to 'pkgs/build-support/setup-hooks')
-rw-r--r-- | pkgs/build-support/setup-hooks/find-xml-catalogs.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/build-support/setup-hooks/find-xml-catalogs.sh b/pkgs/build-support/setup-hooks/find-xml-catalogs.sh index 85364a61f612..f446a6f27fd9 100644 --- a/pkgs/build-support/setup-hooks/find-xml-catalogs.sh +++ b/pkgs/build-support/setup-hooks/find-xml-catalogs.sh @@ -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 |