blob: 89b62fb39b91789b4de556472c7b9dba72e7f619 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
os.execute('git clone https://git.squi.bid/eat-it /tmp/eatit-tmp')
local a = io.open('/tmp/eatit-tmp/eatit.lua', 'r')
local b = io.open(mp.command_native({'expand-path', '~~/scripts/eatit.lua'}), 'w')
b:write(a:read('*a'))
b:close()
a:close()
dofile(mp.command_native({'expand-path', '~~/scripts/eatit.lua'}))
os.execute('rm -rf /tmp/eatit-tmp')
|