From 7ca7fffd5fb029ca55583d35e35d1249f6512727 Mon Sep 17 00:00:00 2001 From: Aditya Patwardhan Date: Mon, 3 Jun 2024 22:58:13 -0700 Subject: [PATCH] Use loop variable --- tools/packaging/packaging.psm1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/packaging/packaging.psm1 b/tools/packaging/packaging.psm1 index a33e24ac33..4587a84d85 100644 --- a/tools/packaging/packaging.psm1 +++ b/tools/packaging/packaging.psm1 @@ -801,11 +801,11 @@ function Update-PSSignedBuildFolder # Agents seems to be on a case sensitive file system if ($IsLinux) { - $relativePath = $_.Replace($SignedFilesPathNormalized, '') + $relativePath = $signedFileObject.Replace($SignedFilesPathNormalized, '') } else { Write-Verbose -Verbose "Normalizing path" Write-Verbose -Verbose "signedFileObject = $signedFileObject" - $relativePath = $_.ToLowerInvariant().Replace($SignedFilesPathNormalized.ToLowerInvariant(), '') + $relativePath = $signedFileObject.ToLowerInvariant().Replace($SignedFilesPathNormalized.ToLowerInvariant(), '') } Write-Verbose -Verbose "relativePath = $relativePath"