mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-12 02:10:30 +00:00
Merge pull request #239 from Wilma456/shellprog
Make shell.programs filter .lua extension
This commit is contained in:
commit
fb00698557
@ -180,8 +180,12 @@ function shell.programs( _bIncludeHidden )
|
||||
-- Sort and return
|
||||
local tItemList = {}
|
||||
for sItem, b in pairs( tItems ) do
|
||||
if sItem:sub(-4) == ".lua" then
|
||||
table.insert( tItemList, sItem:sub(1,-5) )
|
||||
else
|
||||
table.insert( tItemList, sItem )
|
||||
end
|
||||
end
|
||||
table.sort( tItemList )
|
||||
return tItemList
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user