[latex3-commits] [git/LaTeX3-latex3-l3build] main: Trap null texmfhome result (71a5d24)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Nov 24 23:54:58 CET 2021


Repository : https://github.com/latex3/l3build
On branch  : main
Link       : https://github.com/latex3/l3build/commit/71a5d24f80c5e56134441ab4a7d00647bbb62ada

>---------------------------------------------------------------

commit 71a5d24f80c5e56134441ab4a7d00647bbb62ada
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Nov 24 22:54:58 2021 +0000

    Trap null texmfhome result


>---------------------------------------------------------------

71a5d24f80c5e56134441ab4a7d00647bbb62ada
 l3build-install.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/l3build-install.lua b/l3build-install.lua
index 6e83690..78fe2d4 100644
--- a/l3build-install.lua
+++ b/l3build-install.lua
@@ -38,7 +38,7 @@ local insert = table.insert
 local function gethome()
   set_program("latex")
   local result = options["texmfhome"] or var_value("TEXMFHOME")
-  if result == "" or match(result, os_pathsep) then
+  if not result or result == "" or match(result, os_pathsep) then
     print("Ambiguous TEXMFHOME setting: please use the --texmfhome option")
     os.exit(1)
   end





More information about the latex3-commits mailing list.