From 1e4a936baae048a069cbd9a0b0b97ced2f1bacd4 Mon Sep 17 00:00:00 2001 From: Drew Short Date: Sat, 13 Jan 2018 04:26:03 -0600 Subject: [PATCH] Fixing bootstrap --- src/bootstrap.lua | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/src/bootstrap.lua b/src/bootstrap.lua index bb08489..a2a1aa1 100644 --- a/src/bootstrap.lua +++ b/src/bootstrap.lua @@ -2,9 +2,7 @@ SPM Bootstrap Installer Minimal functionality to install pull SPM and install itself. ]] - local component = require("component") - local wget = loadfile("/bin/wget.lua") if not component.isAvailable("internet") then @@ -12,24 +10,17 @@ if not component.isAvailable("internet") then return end -local downloadSrc - -if "{MINIFIED}" == "true" then - downloadSrc = "{URL_BASE}/spm/spm.min.lua" -else - downloadSrc = "{URL_BASE}/spm/spm.lua" -end - +local downloadSrc = "{URL_BASE}/spm/spm.min.lua" local saveLocation = "/tmp/spm.lua" -term.write("Downloading Temporary SPM\n") +print("Downloading Temporary SPM") wget("-q", downloadSrc, saveLocation) local spm = require(saveLocation) -term.write("Installing SPM Locally\n") +print("Installing SPM Locally") spm("install", "spm") -term.write("Removing Temporary SPM\n") +print("Removing Temporary SPM") fs.remove(saveLocation) -term.write("Done\n") \ No newline at end of file +print("Done") \ No newline at end of file