Skip to content
This repository was archived by the owner on May 31, 2019. It is now read-only.

Commit 9a9aed3

Browse files
gldraphaelnatemcmaster
authored andcommitted
Add missing space to checksum string in sample code (#441)
1. Added the missing space to the checksum string. 2. Add `w` flag to `sha256sum` so that user is warned if a formatting issue (like the missing space) occurs again in the future.
1 parent 30725cb commit 9a9aed3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

2.1/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Sample code to install NodeJS on your own:
2626
ENV NODE_VERSION 8.9.4
2727
ENV NODE_DOWNLOAD_SHA 21fb4690e349f82d708ae766def01d7fec1b085ce1f5ab30d9bda8ee126ca8fc
2828
RUN curl -SL "https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.gz" --output nodejs.tar.gz \
29-
&& echo "$NODE_DOWNLOAD_SHA nodejs.tar.gz" | sha256sum -c - \
29+
&& echo "$NODE_DOWNLOAD_SHA nodejs.tar.gz" | sha256sum -cw - \
3030
&& tar -xzf "nodejs.tar.gz" -C /usr/local --strip-components=1 \
3131
&& rm nodejs.tar.gz \
3232
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs

0 commit comments

Comments
 (0)