From 66ca84fd9f4fffaa044c510c013161e0b9f1f88b Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Thu, 27 Apr 2023 12:35:47 +0200 Subject: [PATCH] Fix installer. --- src/ms-installer.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ms-installer.lua b/src/ms-installer.lua index 3c6df0f..3c8aed0 100644 --- a/src/ms-installer.lua +++ b/src/ms-installer.lua @@ -23,8 +23,11 @@ for _, lib in pairs(libs) do end print("Downloaded " .. lib) end -print("Done!") +print("----------------------------") for _, lib in pairs(libs) do - local m = require(lib) + local nameIdx = string.find(lib, "%.") + local name = string.sub(lib, nameIdx - 1, -1) + local m = require(name) print(" " .. lib .. " installed with version " .. m.VERSION) end +print("Done!")