Browse Source

Assigning values to variables so they're recognized

environments/development/deployments/37
Drew Short 7 years ago
parent
commit
c8b723b4ae
  1. 4
      src/spm/spm.moon

4
src/spm/spm.moon

@ -344,7 +344,7 @@ installPackage = (requestedPackage, installPath, doUpdate) ->
locallyInstalledPackages[requestedPackage] = {}
term.write("Installing Files...")
for filePath, requestedInstallPath in pairs(packageInfo.files)
installedPath
installedPath = nil
if string.find(requestedInstallPath, "^//")
localInstalledPath = string.sub(requestedInstallPath, 2)
@ -360,7 +360,7 @@ installPackage = (requestedPackage, installPath, doUpdate) ->
installedPath = fs.concat(installPath, requestedInstallPath, string.gsub(filePath, ".+(/.-)$", "%1"), nil)
downloadPath
downloadPath = nil
if (packageInfo.minified or options.m) and not options.nm
downloadPath = repositoryPath .. "/" .. string.gsub(filePath, "(.+)%.lua$", "%1") .. ".min.lua"
else

Loading…
Cancel
Save