Skip to content

Commit

Permalink
Merge pull request #28 from x1101/feature_add-dnf
Browse files Browse the repository at this point in the history
Add DNF command for Linux updates
  • Loading branch information
SamErde authored Oct 25, 2024
2 parents 0850e43 + 49e7d34 commit f06d805
Show file tree
Hide file tree
Showing 2 changed files with 8 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
4 changes: 4 additions & 0 deletions src/PSPreworkout/Public/Update-AllTheThings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,10 @@ function Update-AllTheThings {
sudo apt update
sudo apt upgrade
}
if (Get-Command apt -ErrorAction SilentlyContinue) {
Write-Host '[5] Updating dnf packages.'
sudo apt dnf
}
} else {
Write-Verbose '[5] Not Linux. Skipping section.'
}
Expand Down

0 comments on commit f06d805

Please sign in to comment.