Skip to content

Commit

Permalink
Add apt upgrade. Update comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamErde committed Jul 23, 2024
1 parent bad6568 commit 6d7f98e
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions Update-AllTheThings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
.AUTHOR Sam Erde
.COPYRIGHT (c) Sam Erde
.TAGS Update PowerShell Windows Linux macOS
.LICENSEURI
.LICENSEURI
.PROJECTURI https://github.com/SamErde
.ICONURI
.ICONURI
#>

function Update-AllTheThings {
Expand Down Expand Up @@ -53,13 +53,13 @@ function Update-AllTheThings {
Write-Host @'
__ __ __ __ ___ ____
/ / / /__ ___/ /__ _/ /____ / _ | / / /
/ /_/ / _ \/ _ / _ `/ __/ -_) / __ |/ / /
\____/ .__/\_,_/\_,_/\__/\__/ /_/ |_/_/_/
___/_/__ ________ _
/ /_/ / _ \/ _ / _ `/ __/ -_) / __ |/ / /
\____/ .__/\_,_/\_,_/\__/\__/ /_/ |_/_/_/
___/_/__ ________ _
/_ __/ / ___ /_ __/ / (_)__ ___ ____
/ / / _ \/ -_) / / / _ \/ / _ \/ _ `(_-<
/_/ /_//_/\__/ /_/ /_//_/_/_//_/\_, /___/
/___/
/___/
'@
# Get all installed PowerShell modules
Expand Down Expand Up @@ -159,15 +159,16 @@ function Update-AllTheThings {
winget upgrade --silent --scope user --accept-package-agreements --accept-source-agreements --all
}

# Early testing, no progress bar yet. Need to check for admin.
# Early testing. No progress bar yet. Need to check for admin, different distros, and different package managers.
if ($IsLinux) {
if (Get-Command apt -ErrorAction SilentlyContinue) {
Write-Host '[6] Updating apt packages.'
apt update
sudo apt update
sudo apt upgrade
}
}

# Early testing, no progress bar yet. Need to check for admin.
# Early testing. No progress bar yet. Need to check for admin and different package managers.
if ($IsMacOS) {
softwareupdate -l
if (Get-Command brew -ErrorAction SilentlyContinue) {
Expand Down

0 comments on commit 6d7f98e

Please sign in to comment.