branch support

This commit is contained in:
kepler155c@gmail.com
2017-05-19 20:55:19 -04:00
parent 8ecfea1524
commit 558d271ae0
4 changed files with 18 additions and 4 deletions

View File

@@ -1,4 +1,13 @@
local DEFAULT_UPATH = 'https://raw.githubusercontent.com/kepler155c/opus/master/sys/apis'
local branch = 'master'
if fs.exists('.branch') then
local f = fs.open('.branch', "r")
if f then
branch = f.readAll()
f.close()
end
end
local DEFAULT_UPATH = 'https://raw.githubusercontent.com/kepler155c/opus/' .. branch .. '/sys/apis'
local PASTEBIN_URL = 'http://pastebin.com/raw'
local GIT_URL = 'https://raw.githubusercontent.com'