From b33a11a4f77d06ab6a98f92de38290e4ec49a312 Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Sat, 11 Sep 2021 12:46:42 +0200 Subject: [PATCH] MacOS Bugfix --- .../github-workflows/setup-variables.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/continuous-integration/github-workflows/setup-variables.sh b/scripts/continuous-integration/github-workflows/setup-variables.sh index 56a7741..83504cc 100644 --- a/scripts/continuous-integration/github-workflows/setup-variables.sh +++ b/scripts/continuous-integration/github-workflows/setup-variables.sh @@ -1,5 +1,14 @@ #!/bin/bash -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" echo "MATRIX_OS: $GH_MATRIX_OS" @@ -57,7 +66,7 @@ fi echo "====== Setup variables ======" echo "Current root directory:" -realpath . +safe_realpath . echo "=============================" # ====== OS Variables