Skip to content

Commit

Permalink
Don't check return code of unattended-upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishamm committed Apr 17, 2024
1 parent ef68b04 commit 82df458
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/DuetPiManagementPlugin/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -518,10 +518,7 @@ await using (FileStream fs = new("/etc/hosts", FileMode.Create, FileAccess.Write
else
{
// Perform upgrade
if (await Command.ExecQuery("/usr/bin/unattended-upgrade", string.Empty))
{
throw new Exception("Upgrade process return non-zero exit code");
}
await Command.ExecQuery("/usr/bin/unattended-upgrade", string.Empty);
}

// Done
Expand Down

0 comments on commit 82df458

Please sign in to comment.