mirror of
https://github.com/actions/setup-java.git
synced 2025-04-19 17:36:45 +00:00
This reverts commit 6cdf39a6b6
.
Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com>
This commit is contained in:
parent
dcd29da2fa
commit
c3ac5dd0ed
9 changed files with 2 additions and 359 deletions
|
@ -24,7 +24,7 @@ fi
|
|||
ACTUAL_JAVA_VERSION="$(java -version 2>&1)"
|
||||
echo "Found java version: $ACTUAL_JAVA_VERSION"
|
||||
|
||||
GREP_RESULT=$(echo $ACTUAL_JAVA_VERSION | grep -E "^(openjdk|java) version \"$EXPECTED_JAVA_VERSION")
|
||||
GREP_RESULT=$(echo $ACTUAL_JAVA_VERSION | grep "^openjdk version \"$EXPECTED_JAVA_VERSION")
|
||||
if [ -z "$GREP_RESULT" ]; then
|
||||
echo "::error::Unexpected version"
|
||||
echo "Expected version: $EXPECTED_JAVA_VERSION"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue