From 38981e19bd998e405d15a906df6cf659b7b1204f Mon Sep 17 00:00:00 2001 From: LDDestroier Date: Sat, 3 Jul 2021 07:49:23 -0400 Subject: [PATCH] Removed shell call from listAll --- progdor2.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/progdor2.lua b/progdor2.lua index 74f26c3..32eb127 100644 --- a/progdor2.lua +++ b/progdor2.lua @@ -400,7 +400,7 @@ local function listAll(path, includePath) local fc = fs.combine for i = 1, #list do if allowReadOnly or (not fs.isReadOnly(fc(path, list[i]))) then - if allowPackPD or fc(path, list[i]) ~= shell.getRunningProgram() then + if allowPackPD or fc(path, list[i]) ~= (shell and shell.getRunningProgram()) then if fs.isDir(fc(path, list[i])) then if #fs.list(fc(path, list[i])) == 0 then output[#output+1] = (includePath and fc(path, list[i]) or list[i]) .. "/"