From eb9b7f3b8c95376d2b542e7ecbbd9c3466177abc Mon Sep 17 00:00:00 2001 From: Lignum Date: Tue, 16 May 2017 21:50:35 +0200 Subject: [PATCH] Ignore dirs inside startup directories --- src/main/resources/assets/computercraft/lua/rom/startup | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/resources/assets/computercraft/lua/rom/startup b/src/main/resources/assets/computercraft/lua/rom/startup index 3bb4ed2d8..fe250d7a0 100644 --- a/src/main/resources/assets/computercraft/lua/rom/startup +++ b/src/main/resources/assets/computercraft/lua/rom/startup @@ -223,7 +223,10 @@ local function findStartups( sBaseDir ) tStartups = {} end for _,v in pairs( fs.list( sBasePath ) ) do - tStartups[ #tStartups + 1 ] = "/" .. fs.combine( sBasePath, v ) + local sPath = "/" .. fs.combine( sBasePath, v ) + if not fs.isDir( sPath ) then + tStartups[ #tStartups + 1 ] = sPath + end end end return tStartups