diff --git a/README.new b/README.new index e23cb8945..56f86c15c 100644 --- a/README.new +++ b/README.new @@ -54,3 +54,6 @@ Lmod 8.4+ (8.4.20) * Adding wV field to MName and MT class (Merged wV branch) * This allows users to tell how (if any) default is set. (8.4.21) * Issue #496: Add findLuaProg() or die + (8.4.22) * Issue #496: Fix luaCmd -> luaprog. + + diff --git a/src/utils.lua b/src/utils.lua index 5baf3b6f0..8f189367c 100644 --- a/src/utils.lua +++ b/src/utils.lua @@ -224,7 +224,7 @@ function findLuaProg() if (luaprog:sub(1,1) == "@") then luaprog, found = findInPath("lua") else - found = isFile(luaCmd) and posix.access(luaCmd, "x") + found = isFile(luaprog) and posix.access(luaprog, "x") end if (not found) then LmodError{msg="e_Failed_2_Find", name = "lua"}