Skip to content

Commit

Permalink
Add DNF command for Linux updates
Browse files Browse the repository at this point in the history
  • Loading branch information
x1101 committed Oct 25, 2024
1 parent 1dfdbc1 commit 1106119
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Scripts/Update-AllTheThings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,10 @@ function Update-AllTheThings {
sudo apt update
sudo apt upgrade
}
if (Get-Command dnf -ErrorAction SilentlyContinue) {
Write-Host '[5] Updating dnf packages.'
sudo update
}
} else {
Write-Verbose '[5] Not Linux. Skipping section.'
}
Expand Down

0 comments on commit 1106119

Please sign in to comment.