From c75b22f4d9d28361a5f2ab9a46b19c8cd4665c5a Mon Sep 17 00:00:00 2001 From: KnifMelti Date: Fri, 14 Mar 2025 23:29:13 +0100 Subject: [PATCH] Trim RAW --- Sources/Winget-AutoUpdate/functions/Test-Mods.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Winget-AutoUpdate/functions/Test-Mods.ps1 b/Sources/Winget-AutoUpdate/functions/Test-Mods.ps1 index bcede835..a3c6938e 100644 --- a/Sources/Winget-AutoUpdate/functions/Test-Mods.ps1 +++ b/Sources/Winget-AutoUpdate/functions/Test-Mods.ps1 @@ -22,10 +22,10 @@ function Test-Mods ($app) { $ModsPreInstall = "$Mods\$app-preinstall.ps1" } if (Test-Path "$Mods\$app-override.txt") { - $ModsOverride = Get-Content "$Mods\$app-override.txt" -Raw + $ModsOverride = (Get-Content "$Mods\$app-override.txt" -Raw).Trim() } if (Test-Path "$Mods\$app-custom.txt") { - $ModsCustom = Get-Content "$Mods\$app-custom.txt" -Raw + $ModsCustom = (Get-Content "$Mods\$app-custom.txt" -Raw).Trim() } if (Test-Path "$Mods\$app-install.ps1") { $ModsInstall = "$Mods\$app-install.ps1"