diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..1d74e219 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.vscode/ diff --git a/check_dep_port.sh b/check_dep_port.sh index 90c0decb..eb713344 100755 --- a/check_dep_port.sh +++ b/check_dep_port.sh @@ -19,7 +19,7 @@ if command -v java &> /dev/null; then JAVA_VERSION=$(java -version 2>&1 | head -n 1 | cut -d'"' -f2) JAVA_MAJOR=$(echo $JAVA_VERSION | cut -d'.' -f1) - if [[ "$JAVA_VERSION" == *"1."* ]]; then + if [[ "$JAVA_VERSION" == "1."* ]]; then JAVA_MAJOR=$(echo $JAVA_VERSION | cut -d'.' -f2) fi