From 800e5e1e62da5ffaed86c71bff394d1de733b8f5 Mon Sep 17 00:00:00 2001 From: daz Date: Sat, 19 Aug 2023 20:31:33 -0600 Subject: [PATCH] Fix check --- .github/workflows/integ-test-detect-java-toolchains.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integ-test-detect-java-toolchains.yml b/.github/workflows/integ-test-detect-java-toolchains.yml index 9e4f171..506d71f 100644 --- a/.github/workflows/integ-test-detect-java-toolchains.yml +++ b/.github/workflows/integ-test-detect-java-toolchains.yml @@ -103,4 +103,11 @@ jobs: shell: bash run: | cat ~/.gradle/gradle.properties - grep -q 'org.gradle.java.installations.fromEnv=JAVA_HOME' && exit 1 + if grep -q 'org.gradle.java.installations.fromEnv=JAVA_HOME' ~/.gradle/gradle.properties ; then + echo 'Found overwritten fromEnv' + exit 1 + fi + if ! grep -q 'org.gradle.java.installations.fromEnv=XXXXX' ~/.gradle/gradle.properties ; then + echo 'Did NOT find original fromEnv' + exit 1 + fi