mirror of
https://github.com/Kiritow/OpenComputerScripts.git
synced 2024-03-22 13:10:46 +08:00
Grab v2.3.2-alpha
Better performance. Fix a small bug in grab add
This commit is contained in:
parent
56c48d1ed6
commit
2ed23d6422
5
grab.lua
5
grab.lua
|
@ -8,7 +8,7 @@ local serialization=require('serialization')
|
|||
local event=require('event')
|
||||
local args,options=shell.parse(...)
|
||||
|
||||
local grab_version="Grab v2.3.1-alpha"
|
||||
local grab_version="Grab v2.3.2-alpha"
|
||||
|
||||
local valid_options={
|
||||
["cn"]=true, ["help"]=true, ["version"]=true, ["proxy"]=true, ["skip_install"]=true
|
||||
|
@ -84,7 +84,7 @@ local function download(url)
|
|||
elseif(ret==true) then
|
||||
break
|
||||
else
|
||||
local ev=event.pull(0.5,"interrupted")
|
||||
local ev=event.pull(0.05,"interrupted")
|
||||
if(ev~=nil) then
|
||||
handle.close()
|
||||
return false,"Interrupted from terminal."
|
||||
|
@ -249,6 +249,7 @@ end
|
|||
if(args[1]=="add") then
|
||||
if(#args<2) then
|
||||
print("Nothing to add.")
|
||||
return
|
||||
end
|
||||
|
||||
if(not check_db()) then
|
||||
|
|
Loading…
Reference in New Issue
Block a user