summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2022-06-27 22:45:25 +0100
committerubq323 <ubq323@ubq323.website>2022-06-27 22:45:25 +0100
commit65fcf654a30e2a33b5c9d04ce58ac884ee65b9cc (patch)
treef1b8fd5d4261beabe6ef9f84539c028ceb8cc409
parent6ef043e220d6bcea3a3f628060225f2ca6c380b7 (diff)
pm
-rw-r--r--pm.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/pm.lua b/pm.lua
new file mode 100644
index 0000000..ff2bef6
--- /dev/null
+++ b/pm.lua
@@ -0,0 +1,7 @@
+local function dl(filename)
+ local file=fs.open("/"..filename..".lua")
+ local res = http.get("https://g.gh0.pw/ccprogs/plain/"..filename..".lua")
+ file.write(res.readAll())
+end
+
+dl(arg[1])