#573 fix to install
This commit is contained in:
parent
8439e02586
commit
d36f7adab1
10
ccmsi.lua
10
ccmsi.lua
@ -15,7 +15,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
]]--
|
||||
|
||||
local CCMSI_VERSION = "v1.19a"
|
||||
local CCMSI_VERSION = "v1.19b"
|
||||
|
||||
local install_dir = "/.install-cache"
|
||||
local manifest_path = "https://mikaylafischler.github.io/cc-mek-scada/manifests/"
|
||||
@ -400,12 +400,11 @@ elseif mode == "install" or mode == "update" then
|
||||
|
||||
-- try to find local versions
|
||||
ok, l_manifest = read_local_manifest()
|
||||
if not update_installer then
|
||||
if mode == "update" and not ok then
|
||||
if mode == "update" and not update_installer then
|
||||
if not ok then
|
||||
red();println("Failed to load local installation information, cannot update.");white()
|
||||
return
|
||||
end
|
||||
|
||||
else
|
||||
ver.boot.v_local = l_manifest.versions.bootloader
|
||||
ver.app.v_local = l_manifest.versions[app]
|
||||
ver.comms.v_local = l_manifest.versions.comms
|
||||
@ -418,6 +417,7 @@ elseif mode == "install" or mode == "update" then
|
||||
return
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if r_manifest.versions.installer ~= CCMSI_VERSION then
|
||||
if not update_installer then yellow();println("A different version of the installer is available, it is recommended to update to it.");white() end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user