Browse Source

Adding filesystem component, to delete files

environments/production/deployments/28
Drew Short 6 years ago
parent
commit
783cf5da8e
  1. 3
      src/bootstrap.lua
  2. 1
      src/spm/spm.lua

3
src/bootstrap.lua

@ -3,6 +3,7 @@
Minimal functionality to install pull SPM and install itself.
]]
local component = require("component")
local fs = require("filesystem")
local wget = loadfile("/bin/wget.lua")
if not component.isAvailable("internet") then
@ -14,7 +15,7 @@ local downloadSrc = "{URL_BASE}/spm/spm.min.lua"
local saveLocation = "/tmp/spm.lua"
print("Downloading Temporary SPM")
wget("-q", downloadSrc, saveLocation)
wget("-qf", downloadSrc, saveLocation)
local spm = loadfile(saveLocation)

1
src/spm/spm.lua

@ -40,6 +40,7 @@ local function printUsage()
print("'spm update|upgrade <package>' to update an already installed package")
print("'spm update|upgrade all' to update every already installed package")
print("'spm uninstall|remove <package>' to remove a package from your system")
print("'spm copy <package>' to copy package files to another location")
print(" -f: Force creation of directories and overwriting of existing files.")
end

Loading…
Cancel
Save