From 9e6ea23e0aba1d690e6ab04ecdbe8b5bf920817f Mon Sep 17 00:00:00 2001 From: Patrick Hallisey Date: Thu, 29 Aug 2024 16:34:50 -0700 Subject: [PATCH] add quotes to powershell args --- .../pipelines/templates/steps/save-package-properties.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eng/common/pipelines/templates/steps/save-package-properties.yml b/eng/common/pipelines/templates/steps/save-package-properties.yml index 7560f69e3213e..1808dc2a00f3c 100644 --- a/eng/common/pipelines/templates/steps/save-package-properties.yml +++ b/eng/common/pipelines/templates/steps/save-package-properties.yml @@ -31,8 +31,8 @@ steps: inputs: filePath: ${{ parameters.ScriptDirectory }}/Save-Package-Properties.ps1 arguments: > - -PrDiff ${{ parameters.DiffDirectory }}/diff.json - -OutDirectory ${{ parameters.PackageInfoDirectory }} + -PrDiff '${{ parameters.DiffDirectory }}/diff.json' + -OutDirectory '${{ parameters.PackageInfoDirectory }}' pwsh: true - ${{ else }}: - task: Powershell@2 @@ -40,7 +40,7 @@ steps: inputs: filePath: ${{ parameters.ScriptDirectory }}/Save-Package-Properties.ps1 arguments: > - -ServiceDirectory ${{parameters.ServiceDirectory}} - -OutDirectory ${{ parameters.PackageInfoDirectory }} + -ServiceDirectory '${{parameters.ServiceDirectory}}' + -OutDirectory '${{ parameters.PackageInfoDirectory }}' -AddDevVersion:$${{ eq(variables['SetDevVersion'],'true') }} pwsh: true