blob: c983bdabb9e5ce328841d27b0c47e7a68c64b2b4 [file] [log] [blame] [raw]
if not install.root or #install.root == 0 then
install.root = "usr"
end
if install.update then
io.stderr:write("Please run 'oppm update oppm' from an installed version\nof this program to update oppm.\n")
return
end
os.execute(install.from .. "usr/bin/oppm install --iKnowWhatIAmDoing -f oppm " .. install.to:gsub("//","/") .. install.root)