added installer script to readme.

This commit is contained in:
Andrew Lalis 2023-04-27 12:17:07 +02:00
parent 3560cca7ca
commit d3da86c95e
2 changed files with 6 additions and 0 deletions

View File

@ -8,3 +8,8 @@ Movescript is a set of libraries that remove the prohibitive tedium of writing t
| [Itemscript](./itemscript/) | A collection of helper functions that simplify inventory management. | | [Itemscript](./itemscript/) | A collection of helper functions that simplify inventory management. |
These modules are intended to be used with the Turtle robots provided by the [CC:Tweaked](https://tweaked.cc/) mod for Minecraft. These modules are intended to be used with the Turtle robots provided by the [CC:Tweaked](https://tweaked.cc/) mod for Minecraft.
You can run an installer script to automatically download the latest versions of all of the movescript family of libraries:
```shell
wget run https://andrewlalis.github.io/movescript/scripts/ms-installer.lua
```

View File

@ -10,6 +10,7 @@ local libs = {
local BASE_URL = "https://andrewlalis.github.io/movescript/scripts/" local BASE_URL = "https://andrewlalis.github.io/movescript/scripts/"
print("Running Movescript installer")
for _, lib in pairs(libs) do for _, lib in pairs(libs) do
if fs.exists(lib) then if fs.exists(lib) then
fs.delete(lib) fs.delete(lib)