Files
newznab-tmux/misc/update/multiprocessing/safe.php
T
2018-02-14 23:08:17 +01:00

17 lines
445 B
PHP

<?php
if (! isset($argv[1]) || ! in_array($argv[1], ['backfill', 'binaries'])) {
exit(
'First argument (mandatory):'.PHP_EOL.
'binaries => Do Safe Binaries update.'.PHP_EOL.
'backfill => Do Safe Backfill update.'.PHP_EOL
);
}
declare(ticks=1);
require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php';
use Blacklight\libraries\Forking;
(new Forking())->processWorkType('safe_'.$argv[1]);