Fix plugin multi updates

Script is only used for CA
This commit is contained in:
Squidly271
2022-09-07 19:23:33 -04:00
committed by GitHub
parent e317c28f47
commit ac22ba7a2e
@@ -40,7 +40,8 @@ function write(...$messages){
foreach ($plugins as $plugin) {
if (!$plugin || (!$cmd = $call[pathinfo($plugin)['extension']])) continue;
$line = '';
$run = popen("$cmd $method $plugin",'r');
$pluginArg = $method == "update" ? basename($plugin) : $plugin;
$run = popen("$cmd $method $pluginArg",'r');
while (!feof($run)) {
$line .= fgetc($run);
if (in_array($line[-1],["\r","\n"])) {write($line); $line = '';}