mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
#117 installer v0.9d prevent updating when installation isn't present
This commit is contained in:
@ -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]
|
||||||
|
Reference in New Issue
Block a user