Skip to content

Commit

Permalink
Merged PR 717045: Play nice with powershell profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
jbayardo committed May 9, 2023
1 parent 52d2c18 commit f7e8b01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Shared/Scripts/GcShared.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
@if /I "%~1"=="/h" goto :Help
@if /I "%~1"=="/help" goto :Help

powershell.exe -ExecutionPolicy Bypass %~dpn0.ps1 %*
powershell.exe -NoProfile -ExecutionPolicy Bypass %~dpn0.ps1 %*
@exit /b %ERRORLEVEL%

:Run64
@"%WinDir%\SysNative\cmd.exe" /c "%~f0" %*
@exit /b %ERRORLEVEL%

:Help
@powershell.exe -ExecutionPolicy Bypass Get-Help %~dpn0.ps1 -Detailed
@powershell.exe -NoProfile -ExecutionPolicy Bypass Get-Help %~dpn0.ps1 -Detailed
2 changes: 1 addition & 1 deletion Shared/Scripts/Init.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ REM *********************************
)

REM Install latest Azure Artifacts Credentials Provider (https://github.com/microsoft/artifacts-credprovider)
powershell -Command "iex ""& { $(irm https://aka.ms/install-artifacts-credprovider.ps1) } -AddNetfx"""
powershell -NoProfile -Command "iex ""& { $(irm https://aka.ms/install-artifacts-credprovider.ps1) } -AddNetfx"""

set _BUILDXL_BOOTSTRAP_OUT=%ENLISTMENTROOT%\Out\BootStrap

Expand Down

0 comments on commit f7e8b01

Please sign in to comment.