From 5335690eddb13491ea9ec54785c53dc6b7bd9a7a Mon Sep 17 00:00:00 2001 From: JoniVR Date: Fri, 1 Mar 2019 15:31:59 +0100 Subject: [PATCH] fix version check error on certain Java versions --- JavaVersionSwitcher.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/JavaVersionSwitcher.sh b/JavaVersionSwitcher.sh index b3c03d6..71a8208 100755 --- a/JavaVersionSwitcher.sh +++ b/JavaVersionSwitcher.sh @@ -29,7 +29,7 @@ then fi echo "Your current Java version: " -Java --version +Java -version echo "------------------------------------------------------" echo "Select a Java version you want to use:" @@ -104,6 +104,6 @@ done echo "Done!" echo "------------------------------------------------------" echo "Your new Java version: " -Java --version +Java -version exit 0