From 8533d837cda6bcf7a6c4a0897ee84628aac4ea8b Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Wed, 27 Nov 2024 23:44:38 +0100 Subject: [PATCH] Add simple reload script for itemcontroller --- reload.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 reload.lua diff --git a/reload.lua b/reload.lua new file mode 100644 index 0000000..0ad4432 --- /dev/null +++ b/reload.lua @@ -0,0 +1,14 @@ +local CC_UTILS_DIR = "/cc-utilities" + +local result, retval = pcall(fs.delete, CC_UTILS_DIR) +if fs.exists(CC_UTILS_DIR) then + if result then + print("Wat? Delete succeeded but dir persists???") + else + print(retval) + end + return +end + +shell.run("clone https://gitea.tofvesson.se/GabrielTofvesson/cc-utilities.git") +shell.run("bg cc-utilities/itemcontroller") \ No newline at end of file