From 694a93db6da8efc0bb35a7d62b142c863991fcab Mon Sep 17 00:00:00 2001 From: Jon Chambers Date: Thu, 26 Sep 2024 18:12:18 -0400 Subject: [PATCH] Explicitly look for `sha256sum` inputs via stdin --- mvnw | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mvnw b/mvnw index 66df28542..d3527e2b8 100755 --- a/mvnw +++ b/mvnw @@ -260,7 +260,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 -c - > /dev/null 2>&1; then wrapperSha256Result=true fi elif command -v shasum > /dev/null; then