From d3da86c95ef915dcb366f94acd63a9d8d8966aef Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Thu, 27 Apr 2023 12:17:07 +0200 Subject: [PATCH] added installer script to readme. --- docs/src/guide/README.md | 5 +++++ src/ms-installer.lua | 1 + 2 files changed, 6 insertions(+) diff --git a/docs/src/guide/README.md b/docs/src/guide/README.md index 5bb6088..d70bc48 100755 --- a/docs/src/guide/README.md +++ b/docs/src/guide/README.md @@ -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. | 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 +``` diff --git a/src/ms-installer.lua b/src/ms-installer.lua index 946bbb1..4d1e965 100644 --- a/src/ms-installer.lua +++ b/src/ms-installer.lua @@ -10,6 +10,7 @@ local libs = { local BASE_URL = "https://andrewlalis.github.io/movescript/scripts/" +print("Running Movescript installer") for _, lib in pairs(libs) do if fs.exists(lib) then fs.delete(lib)