From 110611984dcf3f218c0d9836567772d83b29a118 Mon Sep 17 00:00:00 2001 From: Lyle McKarns Date: Fri, 25 Oct 2024 09:53:19 -0400 Subject: [PATCH 1/2] Add DNF command for Linux updates --- Scripts/Update-AllTheThings.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Scripts/Update-AllTheThings.ps1 b/Scripts/Update-AllTheThings.ps1 index 19e817b..d4d78a2 100644 --- a/Scripts/Update-AllTheThings.ps1 +++ b/Scripts/Update-AllTheThings.ps1 @@ -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.' } From 49e7d346e77ac5bf034191ee120b776c1a2d9048 Mon Sep 17 00:00:00 2001 From: Lyle McKarns Date: Fri, 25 Oct 2024 12:56:32 -0400 Subject: [PATCH 2/2] Updated additional file as discussed --- src/PSPreworkout/Public/Update-AllTheThings.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/PSPreworkout/Public/Update-AllTheThings.ps1 b/src/PSPreworkout/Public/Update-AllTheThings.ps1 index 3f57842..b7b7d74 100644 --- a/src/PSPreworkout/Public/Update-AllTheThings.ps1 +++ b/src/PSPreworkout/Public/Update-AllTheThings.ps1 @@ -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.' }