Skip to content

Commit a115cf0

Browse files
committed
mvnw - Fix sha256 check on macOS
I simply applied: apache/maven-wrapper@b2ff9cd which is not included in what mvn wrapper:wrapper installs for whatever reason. (cherry picked from commit 52b69dd)
1 parent 0d0e072 commit a115cf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mvnw

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ if [ -n "${distributionSha256Sum-}" ]; then
227227
echo "Please disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2
228228
exit 1
229229
elif command -v sha256sum >/dev/null; then
230-
if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | sha256sum -c >/dev/null 2>&1; then
230+
if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | sha256sum -c - >/dev/null 2>&1; then
231231
distributionSha256Result=true
232232
fi
233233
elif command -v shasum >/dev/null; then

0 commit comments

Comments
 (0)