Skip to content

Commit

Permalink
Issue #496: Fix luacmd -> luaprog
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert McLay committed Feb 17, 2021
1 parent 7517072 commit c814da6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.new
Original file line number Diff line number Diff line change
Expand Up @@ -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.


2 changes: 1 addition & 1 deletion src/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand Down

0 comments on commit c814da6

Please sign in to comment.