Skip to content

Commit 78bfa69

Browse files
committed
Fixed Chocolatey installation.
1 parent 9eb5dc8 commit 78bfa69

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/PostSharp.Engineering.BuildTools/Docker/ChocolateyComponent.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ public override void WriteDockerfile( TextWriter writer )
1414
{
1515
writer.WriteLine(
1616
"""
17-
RUN powershell -c "irm https://community.chocolatey.org/install.ps1|iex" `
18-
$pathsToAdd = @('C:\ProgramData\chocolatey\bin'); `
19-
$newPath = [Environment]::GetEnvironmentVariable('PATH', 'Machine') + ';' + ($pathsToAdd -join ';'); `
20-
[Environment]::SetEnvironmentVariable('PATH', $newPath, 'Machine'); `
21-
& C:\ProgramData\chocolatey\bin\choco.exe feature enable -n allowGlobalConfirmation
17+
RUN powershell -c 'irm https://community.chocolatey.org/install.ps1|iex'; `
18+
$pathsToAdd = @('C:\ProgramData\chocolatey\bin'); `
19+
$newPath = [Environment]::GetEnvironmentVariable('PATH', 'Machine') + ';' + ($pathsToAdd -join ';'); `
20+
[Environment]::SetEnvironmentVariable('PATH', $newPath, 'Machine'); `
21+
& C:\ProgramData\chocolatey\bin\choco.exe feature enable -n allowGlobalConfirmation
2222
""" );
2323
}
2424
}

0 commit comments

Comments
 (0)