Explicitly look for `sha256sum` inputs via stdin

This commit is contained in:
Jon Chambers 2024-09-26 18:12:18 -04:00 committed by Jon Chambers
parent 2f2dec87b1
commit 694a93db6d
1 changed files with 1 additions and 1 deletions

2
mvnw vendored
View File

@ -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