SHOW:
|
|
- or go back to the newest paste.
1 | -- drmon installation script | |
2 | -- | |
3 | -- | |
4 | ||
5 | - | local libURL = "https://raw.githubusercontent.com/acidjazz/drmon/master/lib/f.lua" |
5 | + | local libURL = "https://raw.githubusercontent.com/coaber/DEReactor/master/lib/f.lua" |
6 | - | local startupURL = "https://raw.githubusercontent.com/acidjazz/drmon/master/drmon.lua" |
6 | + | local startupURL = "https://raw.githubusercontent.com/coaber/DEReactor/master/drmon.lua" |
7 | local lib, startup | |
8 | local libFile, startupFile | |
9 | ||
10 | fs.makeDir("lib") | |
11 | ||
12 | lib = http.get(libURL) | |
13 | libFile = lib.readAll() | |
14 | ||
15 | local file1 = fs.open("lib/f", "w") | |
16 | file1.write(libFile) | |
17 | file1.close() | |
18 | ||
19 | startup = http.get(startupURL) | |
20 | startupFile = startup.readAll() | |
21 | ||
22 | ||
23 | local file2 = fs.open("startup", "w") | |
24 | file2.write(startupFile) | |
25 | file2.close() |