From c5c73ac5edfcc947e93226871db9be067d114973 Mon Sep 17 00:00:00 2001 From: Alexander Schulz Date: Sun, 7 Feb 2021 10:07:01 +0100 Subject: [PATCH] bugfix: possible nil value was not handled --- bin/lzt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/lzt b/bin/lzt index 1d0b57b..b58dd4f 100755 --- a/bin/lzt +++ b/bin/lzt @@ -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 )