mirror of
https://github.com/kikito/middleclass.git
synced 2024-11-25 02:44:20 +00:00
use source instead of short_src, since the last one is for display purposes only
This commit is contained in:
parent
1f5db8c397
commit
463500b86c
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env lua
|
||||
|
||||
-- command should be specs/run.lua
|
||||
local command = debug.getinfo(1).short_src:gsub('\\', '/')
|
||||
local command = debug.getinfo(1).source:match("@(.*)$"):gsub('\\', '/')
|
||||
|
||||
if command ~= 'specs/run.lua' then
|
||||
error('You must run the specs like this: specs/run.lua (or specs\\run.lua for windows)')
|
||||
|
Loading…
Reference in New Issue
Block a user