diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-11-23 17:22:22 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-11-23 17:22:29 -0800 |
| commit | 1a794c64871fa044c3024a7771ee4123e800d3b2 (patch) | |
| tree | d4a9b215995365a037a67827db32856d4248e1c2 /nomsu_environment.lua | |
| parent | 0b082397bb0366a5af250bdf1c757e0c26571de6 (diff) | |
Tweaks and tidying.
Diffstat (limited to 'nomsu_environment.lua')
| -rw-r--r-- | nomsu_environment.lua | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/nomsu_environment.lua b/nomsu_environment.lua index 6f46640..5838a1d 100644 --- a/nomsu_environment.lua +++ b/nomsu_environment.lua @@ -30,8 +30,19 @@ for version = 1, 999 do local peg_file if package.nomsupath then for path in package.nomsupath:gmatch("[^;]+") do - peg_file = io.open(path .. "/nomsu." .. tostring(version) .. ".peg") - if peg_file then + local _continue_0 = false + repeat + if path == "." and package.nomsupath ~= "." then + _continue_0 = true + break + end + peg_file = io.open(path .. "/nomsu." .. tostring(version) .. ".peg") + if peg_file then + break + end + _continue_0 = true + until true + if not _continue_0 then break end end |
