aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bootstrap.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/bootstrap.lua b/bootstrap.lua
new file mode 100644
index 0000000..89b62fb
--- /dev/null
+++ b/bootstrap.lua
@@ -0,0 +1,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')