cc-utilities/reload.lua
2024-11-27 23:44:38 +01:00

14 lines
364 B
Lua

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