aboutsummaryrefslogtreecommitdiff
path: root/test/java/install_additional_java.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/java/install_additional_java.sh')
-rw-r--r--test/java/install_additional_java.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/java/install_additional_java.sh b/test/java/install_additional_java.sh
index fcfd6bd..882c49d 100644
--- a/test/java/install_additional_java.sh
+++ b/test/java/install_additional_java.sh
@@ -5,9 +5,9 @@ set -e
# Optional: Import test library
source dev-container-features-test-lib
-check "java version 18 installed as default" java --version | grep 18
-check "java version 11 installed" ls /usr/local/sdkman/candidates/java | grep 11
-check "java version 8 installed" ls /usr/local/sdkman/candidates/java | grep 8
+check "java version 11 installed as default" grep "11\." <(java --version)
+check "java version 17 installed" grep "^17\." <(ls /usr/local/sdkman/candidates/java)
+check "java version 8 installed" grep "^8\." <(ls /usr/local/sdkman/candidates/java)
# Report result
reportResults