From bf8f9c1487fec650bbc17d5934d3860659bb9661 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 24 Mar 2024 03:17:50 +0100 Subject: [PATCH] Ignore inexistent `POSH_THEME` variable --- scripts/Windows/OS/Install.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index 5f008a67e..ef6944476 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -17,7 +17,7 @@ function Invoke-WindowsInstallation([Context] $context) function Start-WindowsInstallation([Context] $context) { $finished = $false; - Remove-Item Env:\POSH_THEME; + Remove-Item Env:\POSH_THEME -ErrorAction SilentlyContinue; $configPath = "$PSScriptRoot/../Config"; $softwarePath = "$PSScriptRoot/../Software"; $initialConfigStage = "InitialConfiguration";