From 1fc873b07f8e1d93b2db310dbe8399d34c4d7652 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 8 Dec 2024 17:18:20 +0100 Subject: [PATCH] Fix malformed yq script --- scripts/Common/Software/aliae/Manage.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Common/Software/aliae/Manage.ps1 b/scripts/Common/Software/aliae/Manage.ps1 index 6fe58531..85805115 100644 --- a/scripts/Common/Software/aliae/Manage.ps1 +++ b/scripts/Common/Software/aliae/Manage.ps1 @@ -27,7 +27,7 @@ $null = New-Module { Value = "$Value"; } ` -User $User ` - ".alias |= [((. // [])[] | select(.name != env(Name)))] + [{ name: env(Name), value: env(Value) }]"; + ".alias |= [((. // [])[] | select(.name != env.Name))] + [{ name: env.Name, value: env.Value }]"; } <# @@ -53,7 +53,7 @@ $null = New-Module { Value = "$Value"; } ` -User $User ` - ".env |= [((. // [])[] | select(.name != env(Name)))] + [{ name: env(Name), value: env(Value) }]"; + ".env |= [((. // [])[] | select(.name != env.Name))] + [{ name: env.Name, value: env.Value }]"; } <#