diff options
author | Squibid <me@zacharyscheiman.com> | 2023-07-28 19:23:26 -0400 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2023-07-28 19:23:26 -0400 |
commit | af125691f7920c3d61d127a261298b38fce1ca30 (patch) | |
tree | efc7ff7db01236c4b1b7ea1d41336aed4a07617d /bootstrap.lua | |
parent | 80de336bdbb7194ad4e2d5475d76b25f01c2cdcd (diff) | |
download | eat-it-af125691f7920c3d61d127a261298b38fce1ca30.tar.gz eat-it-af125691f7920c3d61d127a261298b38fce1ca30.tar.bz2 eat-it-af125691f7920c3d61d127a261298b38fce1ca30.zip |
add bootstrap script and better instructions for installation
Diffstat (limited to '')
-rw-r--r-- | bootstrap.lua | 8 |
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') |