From 09e858993870beb18f5f59ac21cbd694a898e288 Mon Sep 17 00:00:00 2001 From: Robert Jelic <36573031+NoryiE@users.noreply.github.com> Date: Mon, 26 Dec 2022 12:12:31 +0100 Subject: [PATCH] Update install.lua --- docs/install.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/install.lua b/docs/install.lua index 9c761d5..7124e66 100644 --- a/docs/install.lua +++ b/docs/install.lua @@ -243,6 +243,7 @@ function installer.generateWebVersion(file, version) if(request~=nil)then if(fs.exists(file))then fs.delete(file) + end local f = fs.open(file, "w") local link = "https://basalt.madefor.cc/versions/"..version local content = 'local request = http.get("'..link..'", _G._GIT_API_KEY and {Authorization = "token ".._G._GIT_API_KEY})\n' @@ -257,7 +258,6 @@ end f.write(content) f.close() printStatus("Web version successfully downloaded!") - end else error("Version doesn't exist!") end