|
@ -126,7 +126,7 @@ local function readFromFile(path) |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
local function readFromLocalInstallFile() |
|
|
local function readFromLocalInstallFile() |
|
|
readFromFile(localInstalledPackagesFile) |
|
|
|
|
|
|
|
|
return readFromFile(localInstalledPackagesFile) |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
local function readLocalConfigFile() |
|
|
local function readLocalConfigFile() |
|
@ -431,7 +431,7 @@ local function installPackage(requestedPackage, installPath, doUpdate) |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
if packageInfo.minified or options.m then |
|
|
if packageInfo.minified or options.m then |
|
|
filePath = string.gsub(filePath, "(.+)\.(.+)$", "%1\.min\.%2") |
|
|
|
|
|
|
|
|
filePath = string.gsub(filePath, "(.+)\\.(.+)$", "%1\\.min\\.%2") |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
local success = pcall(downloadFile, repositoryPath .. "/" .. filePath, installedPath) |
|
|
local success = pcall(downloadFile, repositoryPath .. "/" .. filePath, installedPath) |
|
|