#117 installer v0.9d prevent updating when installation isn't present

This commit is contained in:
Mikayla Fischler
2023-02-19 21:52:43 -05:00
parent d74a2db8e9
commit 00263b2feb

View File

@ -20,7 +20,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 VERSION = "v0.9c" local VERSION = "v0.9d"
local install_dir = "/.install-cache" local install_dir = "/.install-cache"
local repo_path = "http://raw.githubusercontent.com/MikaylaFischler/cc-mek-scada/" local repo_path = "http://raw.githubusercontent.com/MikaylaFischler/cc-mek-scada/"
@ -240,9 +240,10 @@ elseif mode == "install" or mode == "update" then
-- try to find local versions -- try to find local versions
if not local_ok then if not local_ok then
if mode == "update" then if mode == "update" then
term.setTextColor(colors.yellow) term.setTextColor(colors.red)
println("warning: failed to load local installation information") println("failed to load local installation information, cannot update")
term.setTextColor(colors.white) term.setTextColor(colors.white)
return
end end
else else
local_app_version = local_manifest.versions[app] local_app_version = local_manifest.versions[app]