Files
newznab-tmux/app/Services/Tmux/Scripts/postprocess_pre.php
T

21 lines
548 B
PHP

#!/usr/bin/env php
<?php
/**
* Postprocess PreDB - Utility Script
*
* This script checks releases against PreDB for matches.
*
* Modernized version - now delegates to Artisan command
* Original location: misc/update/tmux/bin/postprocess_pre.php
* New location: app/Services/Tmux/Scripts/postprocess_pre.php
*/
$limit = isset($argv[1]) && is_numeric($argv[1]) ? $argv[1] : '';
$artisan = dirname(__DIR__, 4).'/artisan';
$command = "php {$artisan} predb:check".($limit ? " {$limit}" : '');
passthru($command, $exitCode);
exit($exitCode);