From 1d1250a3e07df7f8fe1b07e7e65bb502c04652ca Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 8 Dec 2024 18:04:59 +0100 Subject: [PATCH] Fix malformed yq scripts --- 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..d51f5ed8 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": strenv(Name), "value": strenv(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": strenv(Name), "value": strenv(Value) }]'; } <#