Skip to content

Commit

Permalink
bugfix: possible nil value was not handled
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Schulz committed Feb 7, 2021
1 parent aa081e8 commit c5c73ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/lzt
Original file line number Diff line number Diff line change
Expand Up @@ -1127,12 +1127,12 @@ local function getdir( args )
errexit( "%q is not a valid directory!", dir )
end

dir = dirname( findup( dir, ".zdfroot", "file", 3 ) )
dir = findup( dir, ".zdfroot", "file", 3 )
if not dir then
errexit( "not able to find the luazdf root directory" )
end

return relativepath( currentdir(), dir ), args
return relativepath( currentdir(), dirname( dir ) ), args
end

local function buildztree( dir )
Expand Down

0 comments on commit c5c73ac

Please sign in to comment.