MacOS Bugfix

This commit is contained in:
Andrea Cavalli 2021-09-11 12:46:42 +02:00
parent 9e052eff2f
commit b33a11a4f7

View File

@ -1,5 +1,14 @@
#!/bin/bash -e #!/bin/bash -e
set -e set -e
safe_realpath() {
if [[ "$OPERATING_SYSTEM_NAME" == "osx" ]]; then
grealpath "$1"
else
realpath "$1"
fi
}
export MAVEN_OPTS="--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/javax.crypto=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED" export MAVEN_OPTS="--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/javax.crypto=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED"
echo "MATRIX_OS: $GH_MATRIX_OS" echo "MATRIX_OS: $GH_MATRIX_OS"
@ -57,7 +66,7 @@ fi
echo "====== Setup variables ======" echo "====== Setup variables ======"
echo "Current root directory:" echo "Current root directory:"
realpath . safe_realpath .
echo "=============================" echo "============================="
# ====== OS Variables # ====== OS Variables