mirror of
https://github.com/webmin/webmin.git
synced 2025-08-01 07:22:48 +00:00
Only the yum command combines lines
This commit is contained in:
@ -326,7 +326,12 @@ sub update_system_updates
|
||||
{
|
||||
local @rv;
|
||||
local %done;
|
||||
&open_execute_command(PKG, "$yum_command check-update 2>/dev/null | tr '\n' '#' | sed -e 's/# / /g' | tr '#' '\n'", 1, 1);
|
||||
if ($yum_command =~ /dnf/) {
|
||||
&open_execute_command(PKG, "$yum_command check-update 2>/dev/null", 1, 1);
|
||||
}
|
||||
else {
|
||||
&open_execute_command(PKG, "$yum_command check-update 2>/dev/null | tr '\n' '#' | sed -e 's/# / /g' | tr '#' '\n'", 1, 1);
|
||||
}
|
||||
|
||||
while(<PKG>) {
|
||||
s/\r|\n//g;
|
||||
|
Reference in New Issue
Block a user