Make the -i option work properly with

This commit is contained in:
v 2020-12-29 11:05:02 +00:00
parent cbefe7c514
commit 22913f3a1d
2 changed files with 6 additions and 5 deletions

View File

@ -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.")

View File

@ -1,5 +1,5 @@
{
["version"] = "0.1.2",
["version"] = "0.1.2-1",
["dependencies"] = {
"mfs",
},