From 5645bd9a43c44fb206916351f15902f65e6e72dd Mon Sep 17 00:00:00 2001 From: ajh123 Date: Sun, 21 Aug 2022 16:44:33 +0100 Subject: [PATCH] Installer files 2 fix? 2 --- installer.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/installer.lua b/installer.lua index ee23fbd..5c0b1cb 100644 --- a/installer.lua +++ b/installer.lua @@ -56,6 +56,7 @@ if #args < 2 then end local function save(data,file) + shell.setPath("/") local file = shell.resolve(file:gsub("%%20"," ")) if not (fs.exists(string.sub(file,1,#file - #fs.getName(file))) and fs.isDir(string.sub(file,1,#file - #fs.getName(file)))) then if fs.exists(string.sub(file,1,#file - #fs.getName(file))) then fs.delete(string.sub(file,1,#file - #fs.getName(file))) end