Skip to content

Commit

Permalink
Issue #669: Do not print <empty> if it is a directory for LMOD_MODULERC
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert McLay committed Jan 16, 2024
1 parent 93eb7ff commit 076a329
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Configuration.lua
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ local function l_new(self)
lmodrc = "<empty>"
end

if (not rc:find(":") and not isFile(rc)) then
if (not rc:find(":") and (not (isFile(rc) or isDir(rc)))) then
rc = rc .. " -> <empty>"
end
if (not readable) then
Expand Down

0 comments on commit 076a329

Please sign in to comment.