Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

Commit

Permalink
Installer files 2 fix? 4 fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ajh123 committed Aug 21, 2022
1 parent 7609ddf commit 34ef6a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions installer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ local async = true
local silent = false

local myPath = shell.dir()
shell.setDr("/")
shell.setDir("/")

local preset = {
-- The GitHub account name
Expand All @@ -39,7 +39,7 @@ local preset = {
-- Function to run when the download completes
done = function()
shell.run("IPvCC/setup/main.lua")
shell.setDr(myPath)
shell.setDir(myPath)
end
}

Expand All @@ -56,7 +56,7 @@ if #args < 2 then
end

local function save(data,file)
shell.setDr("/")
shell.setDir("/")
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
Expand Down

0 comments on commit 34ef6a7

Please sign in to comment.