Skip to content

Commit

Permalink
Fix PoliCheck defect in sync-pr.cmd. (#5671)
Browse files Browse the repository at this point in the history
  • Loading branch information
imcarolwang authored Nov 1, 2024
1 parent adfa755 commit b2dbf64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/System.Private.ServiceModel/tools/scripts/sync-pr.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ if "%4"=="" (
)

REM Disregard the chevrons and quotataions in the next line - it's to output the correct ampersand character to PowerShell
REM We have to duplicate the request URL below for output and for PowerShell because of Powershell's crazy escape sequences interacting
REM badly with cmd's crazy and conflicting escape sequences
REM We have to duplicate the request URL below for output and for PowerShell because of Powershell's escape sequences interacting
REM badly with cmd's conflicting escape sequences

echo [%~n0] Making call to %__SYNC_HOST_URL%?id=%__REPO_ID%^&%__OPERATION_MODE%=%__BRANCH_OR_PR_ID%
powershell -NoProfile -ExecutionPolicy unrestricted -Command "(New-Object Net.WebClient).DownloadString('%__SYNC_HOST_URL%?id=%__REPO_ID%&%__OPERATION_MODE%=%__BRANCH_OR_PR_ID%');"
Expand Down

0 comments on commit b2dbf64

Please sign in to comment.