summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--otfl-font-nms.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua
index 43ef9a5..f0d0d17 100644
--- a/otfl-font-nms.lua
+++ b/otfl-font-nms.lua
@@ -528,7 +528,7 @@ local function scan_dir(dirname, fontnames, newfontnames, texmf)
end
for _,i in next, font_extensions do
for _,ext in next, { i, upper(i) } do
- found = glob(dirname .. "/**." .. ext)
+ found = glob(format("%s/**.%s$", dirname, ext))
-- note that glob fails silently on broken symlinks, which happens
-- sometimes in TeX Live.
if trace_search then