use local variables!
This commit is contained in:
parent
eec87784de
commit
3a6e75776d
2 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue