fix shell not appending current directory to PATH

This commit is contained in:
Ponali
2025-10-04 12:55:13 +02:00
parent 2c47a6df59
commit a89953056b
+2 -2
View File
@@ -81,7 +81,7 @@ function _G.shell.run(command)
if trimmedCommand:find('"') then
table.insert(args, trimmedCommand:sub(1, trimmedCommand:find('"') - 1))
trimmedCommand = trimmedCommand:sub(trimmedCommand:find('"') + 1)
gm = trimmedCommand:gmatch('[^ ]+')
gm = trimmedCommand:gmatch("[^ ]+")
else
print("\27[91mmalformed shell command")
return
@@ -92,7 +92,7 @@ function _G.shell.run(command)
end
-- execute the program
local PATH = table.copy(shellcfg.path)
table.insert(PATH, shell.workingDirectory)
table.insert(PATH, workingDirectory)
if not args[1] then
return
end