To protect your data, the CISO officer has suggested users to enable GitLab 2FA as soon as possible.

Commit 815a1cd6 authored by John Zhang's avatar John Zhang
Browse files

changes to support older version of GNU bash (on macOS)

parent e1f58b35
......@@ -2,11 +2,11 @@
# This script sets up the $HOME/.m2/toolchains.xml if it does not already exist
extract_java_version() {
java -version |& grep "java version" | sed -E 's/java version "[0-9]\.([0-9]+).*"/\1/g'
java -version 2>&1 | grep "java version" | sed -E 's/java version "[0-9]\.([0-9]+).*"/\1/g'
if [ ! -e $1 ]; then
if [ $jver -ge 8 ]; then
cat > $1 <<- EOM
<?xml version="1.0" encoding="UTF8"?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment