Skip to content

Commit a7d0416

Browse files
committed
Fix run function being outside lua folder
1 parent de8b56f commit a7d0416

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/env.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function sudo.run(path)
8585
-- Catch in case we add .lua to our path.
8686
if path:find('%.lua') then path = path:sub(1, path:find('%.lua') - 1) end
8787
-- Make sure the file is there
88-
local file = dir..path..'.lua'
88+
local file = dir..'lua/'..path..'.lua'
8989
if not assert(loadfile(file)) then
9090
sudo.printerr('Unable to run file "'..path..'": No file found.')
9191
return

0 commit comments

Comments
 (0)