This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch sha256sum
in repository https://gitbox.apache.org/repos/asf/maven-wrapper.git

commit 2bf9db8ebb34181ed37c0420bcacb8d99ba208fa
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Fri Jan 16 19:06:55 2026 +0100

    Add --strict flag to sha256sum commands for macOS compatibility
---
 maven-wrapper-distribution/src/resources/mvnw      | 2 +-
 maven-wrapper-distribution/src/resources/only-mvnw | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/maven-wrapper-distribution/src/resources/mvnw 
b/maven-wrapper-distribution/src/resources/mvnw
index 6deb5c2..75ae3cb 100755
--- a/maven-wrapper-distribution/src/resources/mvnw
+++ b/maven-wrapper-distribution/src/resources/mvnw
@@ -290,7 +290,7 @@ done 
<"$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.properties"
 if [ -n "$wrapperSha256Sum" ]; then
   wrapperSha256Result=false
   if command -v sha256sum >/dev/null; then
-    if echo "$wrapperSha256Sum  $wrapperJarPath" | sha256sum -c - >/dev/null 
2>&1; then
+    if echo "$wrapperSha256Sum  $wrapperJarPath" | sha256sum --strict -c - 
>/dev/null 2>&1; then
       wrapperSha256Result=true
     fi
   elif command -v shasum >/dev/null; then
diff --git a/maven-wrapper-distribution/src/resources/only-mvnw 
b/maven-wrapper-distribution/src/resources/only-mvnw
index 9337313..7d52736 100755
--- a/maven-wrapper-distribution/src/resources/only-mvnw
+++ b/maven-wrapper-distribution/src/resources/only-mvnw
@@ -230,7 +230,7 @@ if [ -n "${distributionSha256Sum-}" ]; then
     echo "Please disable validation by removing 'distributionSha256Sum' from 
your maven-wrapper.properties." >&2
     exit 1
   elif command -v sha256sum >/dev/null; then
-    if echo "$distributionSha256Sum  $TMP_DOWNLOAD_DIR/$distributionUrlName" | 
sha256sum -c - >/dev/null 2>&1; then
+    if echo "$distributionSha256Sum  $TMP_DOWNLOAD_DIR/$distributionUrlName" | 
sha256sum --strict -c - >/dev/null 2>&1; then
       distributionSha256Result=true
     fi
   elif command -v shasum >/dev/null; then

Reply via email to