v1.8.1 - Fixed bug where shell would hang on nonexistent command.

This commit is contained in:
TheWahlolly
2025-05-31 11:07:55 +03:00
parent 41d55113e5
commit fad76dbbb5
6 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
local loadfile = ...
local filesystem = loadfile("/halyde/lib/filesystem.lua")(loadfile)
_G._OSVERSION = "Halyde 1.8.0"
_G._OSVERSION = "Halyde 1.8.1"
_G._OSLOGO = ""
local handle, tmpdata = filesystem.open("/halyde/config/oslogo.ans", "r"), nil
repeat
+1 -1
View File
@@ -76,7 +76,7 @@ function _G.shell.run(command)
runAsCoroutine(path, table.unpack(args))
return
else -- try to look for it without the file extension
local files = fs.list(item)
local files = fs.list(item) or {}
for _, file in pairs(files) do
-- previous pattern: (.+)%.[^%.]+$
if args[1] == file:match("(.+)%.[^%.]+$") and not fs.isDirectory(item .. file) then