mirror of
https://github.com/S4mpsa/InfOS.git
synced 2025-08-03 18:06:04 -04:00
Add script to download files from Github
This commit is contained in:
parent
51c1d57ba5
commit
8336d49c95
17
Programs/Assembly Line/getClient.lua
Normal file
17
Programs/Assembly Line/getClient.lua
Normal file
@ -0,0 +1,17 @@
|
||||
local path = "/home"
|
||||
local shell = require("shell")
|
||||
local download_list =
|
||||
{
|
||||
"https://raw.githubusercontent.com/S4mpsa/InfOS/master/Programs/Assembly%20Line/assemblyClient.lua",
|
||||
"https://raw.githubusercontent.com/S4mpsa/InfOS/master/Programs/Assembly%20Line/dictionary.lua",
|
||||
"https://raw.githubusercontent.com/S4mpsa/InfOS/master/Programs/Assembly%20Line/transport.lua",
|
||||
"https://raw.githubusercontent.com/S4mpsa/InfOS/master/Programs/Assembly%20Line/util.lua",
|
||||
}
|
||||
shell.setWorkingDirectory(path)
|
||||
print("Updating Files")
|
||||
for k,v in pairs(download_list) do
|
||||
print("Fetching ",v)
|
||||
local command = "wget "..v.." -f"
|
||||
shell.execute(command)
|
||||
end
|
||||
shell.setWorkingDirectory("/home")
|
Loading…
x
Reference in New Issue
Block a user