From 1bfb196807cb25820ac2a74c4fcb4853c6eaf619 Mon Sep 17 00:00:00 2001 From: Chidozie Ononiwu Date: Thu, 4 Mar 2021 14:49:23 -0800 Subject: [PATCH] Fix paths for non-windows agents --- eng/scripts/Language-Settings.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eng/scripts/Language-Settings.ps1 b/eng/scripts/Language-Settings.ps1 index 83462bfc8d19..ba532b5375d0 100644 --- a/eng/scripts/Language-Settings.ps1 +++ b/eng/scripts/Language-Settings.ps1 @@ -8,10 +8,10 @@ $BlobStorageUrl = "https://azuresdkdocs.blob.core.windows.net/%24web?restype=con function Get-AllPackageInfoFromRepo ($serviceDirectory) { $allPackageProps = @() - $searchPath = "sdk/*/*/setup.py" + $searchPath = Join-Path sdk * * setup.py if ($serviceDirectory) { - $searchPath = "sdk/${serviceDirectory}/*/setup.py" + $searchPath = Join-Path sdk ${serviceDirectory} * setup.py } $allPkgPropLines = $null @@ -19,7 +19,7 @@ function Get-AllPackageInfoFromRepo ($serviceDirectory) { Push-Location $RepoRoot pip install packaging==20.4 -q -I - $allPkgPropLines = python "eng\scripts\get_package_properties.py" -s $searchPath + $allPkgPropLines = python (Join-path eng scripts get_package_properties.py) -s $searchPath } catch {