diff options
author | onefang | 2019-09-06 15:57:41 +1000 |
---|---|---|
committer | onefang | 2019-09-06 15:57:41 +1000 |
commit | 6fa7b1a2e2fd994cc90b15971f3c5a448107f125 (patch) | |
tree | fe301a87da1f4928a4ea6db42fcd994936e476e1 | |
parent | TODO++ (diff) | |
download | apt-panopticon-6fa7b1a2e2fd994cc90b15971f3c5a448107f125.zip apt-panopticon-6fa7b1a2e2fd994cc90b15971f3c5a448107f125.tar.gz apt-panopticon-6fa7b1a2e2fd994cc90b15971f3c5a448107f125.tar.bz2 apt-panopticon-6fa7b1a2e2fd994cc90b15971f3c5a448107f125.tar.xz |
Add a no fork option, though it's not actually implemented yet.
Diffstat (limited to '')
-rwxr-xr-x | mirror-checker.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mirror-checker.lua b/mirror-checker.lua index 069a038..b04d474 100755 --- a/mirror-checker.lua +++ b/mirror-checker.lua | |||
@@ -6,6 +6,8 @@ local args = {...} | |||
6 | 6 | ||
7 | verbosity = 0 | 7 | verbosity = 0 |
8 | keep = false | 8 | keep = false |
9 | -- TODO - Should actually implement this. | ||
10 | fork = true | ||
9 | options = | 11 | options = |
10 | { | 12 | { |
11 | referenceSite = | 13 | referenceSite = |
@@ -371,6 +373,8 @@ if 0 ~= #args then | |||
371 | sendArgs = sendArgs .. a .. " " | 373 | sendArgs = sendArgs .. a .. " " |
372 | elseif "-k" == a then | 374 | elseif "-k" == a then |
373 | keep = true | 375 | keep = true |
376 | elseif "-n" == a then | ||
377 | fork = false | ||
374 | elseif "--" == a:sub(1, 2) then | 378 | elseif "--" == a:sub(1, 2) then |
375 | local s, e = a:find("=") | 379 | local s, e = a:find("=") |
376 | if nil == s then e = -1 end | 380 | if nil == s then e = -1 end |