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

gaborgsomogyi pushed a commit to branch release-1.20
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/release-1.20 by this push:
     new b4a60319045 [FLINK-37181][build] Fix MacOS sha256sum tool compile error
b4a60319045 is described below

commit b4a603190457f1e0b7c99d5655034fb3c7b47772
Author: Mohsen Rezaei <7763122+mohsenrezaei...@users.noreply.github.com>
AuthorDate: Tue Aug 26 01:21:08 2025 -0700

    [FLINK-37181][build] Fix MacOS sha256sum tool compile error
    
    (cherry picked from commit d95f0567c57f375719cba012df74669b921998d9)
    
    Co-authored-by: Gabor Somogyi <gabor_somog...@apple.com>
---
 mvnw | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/mvnw b/mvnw
index 8d937f4c14f..7aa4c7f0ef5 100755
--- a/mvnw
+++ b/mvnw
@@ -259,12 +259,12 @@ while IFS="=" read -r key value; do
 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 command -v sha256sum >/dev/null; then
+    if echo "$wrapperSha256Sum  $wrapperJarPath" | sha256sum -c - > /dev/null 
2>&1; then
       wrapperSha256Result=true
     fi
-  elif command -v shasum > /dev/null; then
-    if echo "$wrapperSha256Sum  $wrapperJarPath" | shasum -a 256 -c > 
/dev/null 2>&1; then
+  elif command -v shasum >/dev/null; then
+    if echo "$wrapperSha256Sum  $wrapperJarPath" | shasum -a 256 -c - > 
/dev/null 2>&1; then
       wrapperSha256Result=true
     fi
   else

Reply via email to