diff options
-rw-r--r-- | src/luarocks/core/sysdetect.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/core/sysdetect.lua b/src/luarocks/core/sysdetect.lua index d999203a..06454f2b 100644 --- a/src/luarocks/core/sysdetect.lua +++ b/src/luarocks/core/sysdetect.lua | |||
@@ -398,7 +398,7 @@ function sysdetect.detect(input_file) | |||
398 | if interp then | 398 | if interp then |
399 | if interp:match(dirsep) then | 399 | if interp:match(dirsep) then |
400 | -- interpreter path is absolute | 400 | -- interpreter path is absolute |
401 | table.insert(files, interp) | 401 | table.insert(files, 1, interp) |
402 | else | 402 | else |
403 | for d in (os.getenv("PATH") or ""):gmatch("[^"..PATHsep.."]+") do | 403 | for d in (os.getenv("PATH") or ""):gmatch("[^"..PATHsep.."]+") do |
404 | table.insert(files, d .. dirsep .. interp) | 404 | table.insert(files, d .. dirsep .. interp) |