Skip to content

Commit 224a0ea

Browse files
committed
Add ErrorActionPreference = Stop
Signed-off-by: Stefan Scherer <[email protected]>
1 parent fce8ee6 commit 224a0ea

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

4.5/windows/windowsservercore/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ ENV NODE_VERSION 4.5.0
55
ENV NODE_SHA256 16aab15b29e79746d1bae708f6a5dbed8ef3c87426a9408f7261163d0cda0f56
66

77
RUN powershell -Command \
8+
$ErrorActionPreference = 'Stop' ; \
89
(New-Object System.Net.WebClient).DownloadFile('https://nodejs.org/dist/v%NODE_VERSION%/node-v%NODE_VERSION%-win-x64.zip', 'node.zip') ; \
910
if ((Get-FileHash node.zip -Algorithm sha256).Hash -ne $env:NODE_SHA256) {exit 1} ; \
1011
Expand-Archive node.zip -DestinationPath C:\ ; \

6.4/windows/windowsservercore/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ ENV NODE_VERSION 6.4.0
55
ENV NODE_SHA256 bb994370e43c1539e11588a86e69064459141b6984b705f1c79a1a13181193b9
66

77
RUN powershell -Command \
8+
$ErrorActionPreference = 'Stop' ; \
89
(New-Object System.Net.WebClient).DownloadFile('https://nodejs.org/dist/v%NODE_VERSION%/node-v%NODE_VERSION%-win-x64.zip', 'node.zip') ; \
910
if ((Get-FileHash node.zip -Algorithm sha256).Hash -ne $env:NODE_SHA256) {exit 1} ; \
1011
Expand-Archive node.zip -DestinationPath C:\ ; \

0 commit comments

Comments
 (0)