fixed installer typo
This commit is contained in:
parent
3065e2bece
commit
7ef363a3c2
11
ccmsi.lua
11
ccmsi.lua
@ -18,7 +18,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||||||
local function println(message) print(tostring(message)) end
|
local function println(message) print(tostring(message)) end
|
||||||
local function print(message) term.write(tostring(message)) end
|
local function print(message) term.write(tostring(message)) end
|
||||||
|
|
||||||
local CCMSI_VERSION = "v1.11a"
|
local CCMSI_VERSION = "v1.11b"
|
||||||
|
|
||||||
local install_dir = "/.install-cache"
|
local install_dir = "/.install-cache"
|
||||||
local manifest_path = "https://mikaylafischler.github.io/cc-mek-scada/manifests/"
|
local manifest_path = "https://mikaylafischler.github.io/cc-mek-scada/manifests/"
|
||||||
@ -32,6 +32,7 @@ local function red() term.setTextColor(colors.red) end
|
|||||||
local function orange() term.setTextColor(colors.orange) end
|
local function orange() term.setTextColor(colors.orange) end
|
||||||
local function yellow() term.setTextColor(colors.yellow) end
|
local function yellow() term.setTextColor(colors.yellow) end
|
||||||
local function green() term.setTextColor(colors.green) end
|
local function green() term.setTextColor(colors.green) end
|
||||||
|
local function cyan() term.setTextColor(colors.cyan) end
|
||||||
local function blue() term.setTextColor(colors.blue) end
|
local function blue() term.setTextColor(colors.blue) end
|
||||||
local function white() term.setTextColor(colors.white) end
|
local function white() term.setTextColor(colors.white) end
|
||||||
local function lgray() term.setTextColor(colors.lightGray) end
|
local function lgray() term.setTextColor(colors.lightGray) end
|
||||||
@ -199,7 +200,7 @@ if #opts == 0 or opts[1] == "help" then
|
|||||||
println("usage: ccmsi <mode> <app> <branch>")
|
println("usage: ccmsi <mode> <app> <branch>")
|
||||||
println("<mode>")
|
println("<mode>")
|
||||||
lgray()
|
lgray()
|
||||||
println(" check - check latest versions avilable")
|
println(" check - check latest versions available")
|
||||||
yellow()
|
yellow()
|
||||||
println(" ccmsi check <branch> for target")
|
println(" ccmsi check <branch> for target")
|
||||||
lgray()
|
lgray()
|
||||||
@ -266,13 +267,11 @@ if mode == "check" then
|
|||||||
blue();print(local_manifest.versions[key])
|
blue();print(local_manifest.versions[key])
|
||||||
if value ~= local_manifest.versions[key] then
|
if value ~= local_manifest.versions[key] then
|
||||||
white();print(" (")
|
white();print(" (")
|
||||||
term.setTextColor(colors.cyan)
|
cyan();print(value);white();println(" available)")
|
||||||
print(value);white();println(" available)")
|
|
||||||
else green();println(" (up to date)") end
|
else green();println(" (up to date)") end
|
||||||
else
|
else
|
||||||
lgray();print("not installed");white();print(" (latest ")
|
lgray();print("not installed");white();print(" (latest ")
|
||||||
term.setTextColor(colors.cyan)
|
cyan();print(value);white();println(")")
|
||||||
print(value);white();println(")")
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user