Skip to content

Commit 2bf9db8

Browse files
committed
Add --strict flag to sha256sum commands for macOS compatibility
1 parent 5d65ea1 commit 2bf9db8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

maven-wrapper-distribution/src/resources/mvnw

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

maven-wrapper-distribution/src/resources/only-mvnw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ if [ -n "${distributionSha256Sum-}" ]; then
230230
echo "Please disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2
231231
exit 1
232232
elif command -v sha256sum >/dev/null; then
233-
if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | sha256sum -c - >/dev/null 2>&1; then
233+
if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | sha256sum --strict -c - >/dev/null 2>&1; then
234234
distributionSha256Result=true
235235
fi
236236
elif command -v shasum >/dev/null; then

0 commit comments

Comments
 (0)