We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc83aa6 commit 0ed566eCopy full SHA for 0ed566e
arch/UNZIP.LUA
@@ -126,8 +126,14 @@ function unzip(p)
126
f:close()
127
end
128
129
-if #arg < 1 then
130
- print((arg[-1] or "?") .. " " .. (arg[0] or "?") .. " file[.zip]")
131
- os.exit(1)
+if arg[-1] then
+ if #arg < 1 then
+ print((arg[-1] or "?") .. " " .. (arg[0] or "?") .. " file[.zip]")
132
+ os.exit(1)
133
+ end
134
+ unzip(arg[1])
135
+else
136
+ -- The script was loaded by an interactive intepreter (most likely to swap disks).
137
+ if not pcall(require, "INFLATE") then print("No inflate support") end
138
+ print("Insert disk with zipfile and type unzip('zipfile') to begin...")
139
-unzip(arg[1])
0 commit comments