Make the -i option work properly with
This commit is contained in:
parent
cbefe7c514
commit
22913f3a1d
@ -8,17 +8,18 @@ while ptr>0 do
|
||||
if args[ptr+1] then
|
||||
flags.install_dir=args[ptr+1]
|
||||
table.remove(args,ptr+1)
|
||||
table.remove(args,ptr)
|
||||
else
|
||||
error("--install-dir needs an argument")
|
||||
end
|
||||
end
|
||||
ptr=ptr-1
|
||||
end
|
||||
if flags.install_dir then
|
||||
local s,r=pkg.set_install_dir(flags.install_dir)
|
||||
if not s then error(r) end
|
||||
end
|
||||
if args[1]=="i" and args[2]~=nil then
|
||||
if flags.install_dir then
|
||||
local s,r=pkg.set_install_dir(flags.install_dir)
|
||||
if not s then error(r) end
|
||||
end
|
||||
local deps=pkg.dependencies(args[2])
|
||||
if not deps then
|
||||
print("Already up to date, æpioform.")
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
["version"] = "0.1.2",
|
||||
["version"] = "0.1.2-1",
|
||||
["dependencies"] = {
|
||||
"mfs",
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user