use local variables!

This commit is contained in:
jane 2021-06-06 00:41:11 -04:00
parent eec87784de
commit 3a6e75776d
2 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ if not fs.exists(temp) then
end
if #args > 0 then
programToInstall = args[1]
local programToInstall = args[1]
else
print("usage:")
print("install.lua <project>")
@ -20,7 +20,7 @@ else
end
if #args > 1 then
print("WARNING: custom paths are currently not supported.")
customPath = shell.resolve(args[2])
local customPath = shell.resolve(args[2])
end
local function downloadFile(program, filename)

View File

@ -12,11 +12,11 @@ if not fs.exists(temp) then
end
if #args > 0 then
programToInstall = args[1]
local programToInstall = args[1]
end
if #args > 1 then
print("WARNING: custom paths are currently not supported.")
customPath = shell.resolve(args[2])
local customPath = shell.resolve(args[2])
end
local function downloadFile(program, filename)