mirror of
https://github.com/unraid/webgui.git
synced 2026-04-24 19:29:13 -05:00
Fix plugin multi updates
Script is only used for CA
This commit is contained in:
@@ -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 = '';}
|
||||
|
||||
Reference in New Issue
Block a user