From 208f48debe5e60fa0bfe8424bc91f5347c9e26f9 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 27 Aug 2024 22:35:31 +0200 Subject: [PATCH] Silence errors concerning empty `aliae` configurations --- scripts/Common/Software/aliae/Main.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Common/Software/aliae/Main.ps1 b/scripts/Common/Software/aliae/Main.ps1 index 59141dae..1daf726a 100644 --- a/scripts/Common/Software/aliae/Main.ps1 +++ b/scripts/Common/Software/aliae/Main.ps1 @@ -34,11 +34,11 @@ Start-SoftwareInstaller @PSBoundParameters ` }; if (Test-Path $globalPath) { - & ([scriptblock]::Create((aliae init pwsh --config $globalPath))); + $null = & ([scriptblock]::Create((aliae init pwsh --config $globalPath))) *>&1; } if (Test-Path $userPath) { - & ([scriptblock]::Create((aliae init pwsh))); + $null = & ([scriptblock]::Create((aliae init pwsh))) *>&1; } aliae completion powershell | Out-String | Invoke-Expression;