You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by dw...@apache.org on 2025/05/07 11:12:43 UTC

(lucene) branch branch_10x updated: Correct gradlew.bat to verify checksums correctly. #14598

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

dweiss pushed a commit to branch branch_10x
in repository https://gitbox.apache.org/repos/asf/lucene.git


The following commit(s) were added to refs/heads/branch_10x by this push:
     new d6e965c1ae9 Correct gradlew.bat to verify checksums correctly. #14598
d6e965c1ae9 is described below

commit d6e965c1ae9cc1caa62338e11721be224cc52f56
Author: Dawid Weiss <da...@carrotsearch.com>
AuthorDate: Wed May 7 13:11:25 2025 +0200

    Correct gradlew.bat to verify checksums correctly. #14598
---
 gradlew.bat | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gradlew.bat b/gradlew.bat
index 64c5d37d74c..803ed5ffb2b 100644
--- a/gradlew.bat
+++ b/gradlew.bat
@@ -84,7 +84,7 @@ set GRADLE_WRAPPER_JAR=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
 set GRADLE_WRAPPER_CHECKSUM=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar.sha256
 
 @rem Read the expected hash from .sha256 file
-for /f "tokens=1" %%A in ("%GRADLE_WRAPPER_CHECKSUM%") do (
+for /f "tokens=1 usebackq" %%A in ("%GRADLE_WRAPPER_CHECKSUM%") do (
     set "EXPECTED=%%A"
 )
 @rem Get actual SHA-256 hash using certutil