From af125691f7920c3d61d127a261298b38fce1ca30 Mon Sep 17 00:00:00 2001 From: Squibid Date: Fri, 28 Jul 2023 19:23:26 -0400 Subject: add bootstrap script and better instructions for installation --- bootstrap.lua | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 bootstrap.lua (limited to 'bootstrap.lua') 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') -- cgit v1.2.1