From 7ef363a3c2d5d57b763f00375105a3a48efc3aca Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Sat, 4 Nov 2023 12:49:54 -0400 Subject: [PATCH] fixed installer typo --- ccmsi.lua | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/ccmsi.lua b/ccmsi.lua index 8b8fa6d..0993382 100644 --- a/ccmsi.lua +++ b/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 print(message) term.write(tostring(message)) end -local CCMSI_VERSION = "v1.11a" +local CCMSI_VERSION = "v1.11b" local install_dir = "/.install-cache" 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 yellow() term.setTextColor(colors.yellow) 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 white() term.setTextColor(colors.white) end local function lgray() term.setTextColor(colors.lightGray) end @@ -199,7 +200,7 @@ if #opts == 0 or opts[1] == "help" then println("usage: ccmsi ") println("") lgray() - println(" check - check latest versions avilable") + println(" check - check latest versions available") yellow() println(" ccmsi check for target") lgray() @@ -266,13 +267,11 @@ if mode == "check" then blue();print(local_manifest.versions[key]) if value ~= local_manifest.versions[key] then white();print(" (") - term.setTextColor(colors.cyan) - print(value);white();println(" available)") + cyan();print(value);white();println(" available)") else green();println(" (up to date)") end else lgray();print("not installed");white();print(" (latest ") - term.setTextColor(colors.cyan) - print(value);white();println(")") + cyan();print(value);white();println(")") end end