From b2734e64798b8e5b64e688cb4ee8c5733e77dcfb Mon Sep 17 00:00:00 2001 From: Scott Beddall Date: Thu, 10 Oct 2024 12:49:29 -0700 Subject: [PATCH] get rid of a relative path from repo root when we cnan simply go relative to the PSScriptRoot directly --- eng/common/scripts/Helpers/Package-Helpers.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eng/common/scripts/Helpers/Package-Helpers.ps1 b/eng/common/scripts/Helpers/Package-Helpers.ps1 index fbf5aa131d2..985ebcc4ee3 100644 --- a/eng/common/scripts/Helpers/Package-Helpers.ps1 +++ b/eng/common/scripts/Helpers/Package-Helpers.ps1 @@ -79,7 +79,7 @@ function CompatibleConvertFrom-Yaml { # Initialize any variables or checks that need to be done once $yqPresent = Get-Command 'yq' -ErrorAction SilentlyContinue if (-not $yqPresent) { - . (Join-Path $PSScriptRoot "../../../../eng/common/scripts/Helpers" PSModule-Helpers.ps1) + . (Join-Path $PSScriptRoot PSModule-Helpers.ps1) Install-ModuleIfNotInstalled -WhatIf:$false "powershell-yaml" "0.4.1" | Import-Module } @@ -90,4 +90,4 @@ function CompatibleConvertFrom-Yaml { else { return ConvertFrom-Yaml $content } -} +} \ No newline at end of file