From ceb80f1138834ac63e450ea73087da0839980dbc Mon Sep 17 00:00:00 2001 From: KnifMelti Date: Mon, 23 Jan 2023 23:57:40 +0100 Subject: [PATCH] Forgot --- Winget-AutoUpdate/mods/_Mods-Functions.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Winget-AutoUpdate/mods/_Mods-Functions.ps1 b/Winget-AutoUpdate/mods/_Mods-Functions.ps1 index ec00209..607d3d0 100644 --- a/Winget-AutoUpdate/mods/_Mods-Functions.ps1 +++ b/Winget-AutoUpdate/mods/_Mods-Functions.ps1 @@ -173,7 +173,7 @@ function Add-ModsReg ($AddKey, $AddValue, $AddTypeData, $AddType) { } function Remove-ModsReg ($DelKey, $DelValue) { - if ("$DelKey" -like "HKEY_LOCAL_MACHINE*") { + if ($DelKey -like "HKEY_LOCAL_MACHINE*") { $DelKey = $DelKey.replace("HKEY_LOCAL_MACHINE","HKLM:") } if (Test-Path "$DelKey") {