Add simple reload script for itemcontroller

This commit is contained in:
Gabriel Tofvesson 2024-11-27 23:44:38 +01:00
parent 71406dfe11
commit 8533d837cd

14
reload.lua Normal file
View File

@ -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")