Skip to content

Commit ea3592c

Browse files
committed
Use proper powershell syntax
1 parent c743a0d commit ea3592c

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

ci/docker/python-wheel-windows-test-vs2022-base.dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ RUN `
4646
# See https://chocolatey.org/install#completely-offline-install
4747
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
4848
RUN `
49-
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) & \
50-
$msix_url = 'https://www.python.org/ftp/python/installer/python.msix'; \
51-
Invoke-WebRequest -Uri $msix_url -OutFile 'python.msix'; \
49+
Set-ExecutionPolicy Bypass -Scope Process -Force; `
50+
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; `
51+
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')); `
52+
$msix_url = 'https://www.python.org/ftp/python/installer/python.msix'; `
53+
Invoke-WebRequest -Uri $msix_url -OutFile 'python.msix'; `
5254
Add-AppxPackage .\python.msix
5355
SHELL ["cmd", "/S", "/C"]
5456

ci/docker/python-wheel-windows-vs2022-base.dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,11 @@ RUN `
8080
# See https://chocolatey.org/install#completely-offline-install
8181
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
8282
RUN `
83-
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) & \
84-
$msix_url = 'https://www.python.org/ftp/python/installer/python.msix'; \
85-
Invoke-WebRequest -Uri $msix_url -OutFile 'python.msix'; \
83+
Set-ExecutionPolicy Bypass -Scope Process -Force; `
84+
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; `
85+
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')); `
86+
$msix_url = 'https://www.python.org/ftp/python/installer/python.msix'; `
87+
Invoke-WebRequest -Uri $msix_url -OutFile 'python.msix'; `
8688
Add-AppxPackage .\python.msix
8789

8890
SHELL ["cmd", "/S", "/C"]

0 commit comments

Comments
 (0)