Removed shell call from listAll

This commit is contained in:
LDDestroier 2021-07-03 07:49:23 -04:00 committed by GitHub
parent ca865a5e9b
commit 38981e19bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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]) .. "/"