From ffdb193dc17292a7c7620e22cdd133bf75e41d3b Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Sat, 11 Sep 2021 12:35:06 +0200 Subject: [PATCH] MacOS bugfix --- scripts/core/setup-variables.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/core/setup-variables.sh b/scripts/core/setup-variables.sh index 4b40856..d916198 100755 --- a/scripts/core/setup-variables.sh +++ b/scripts/core/setup-variables.sh @@ -2,7 +2,7 @@ echo "====== Setup variables ======" echo "Current root directory:" -realpath . +realpath . || grealpath . echo "=============================" # ====== CPU Architecture Variables @@ -70,7 +70,7 @@ if [[ "$OPERATING_SYSTEM_NAME" == "linux" ]]; then export CROSS_CC="${CPU_ARCH_CMAKE}-linux-gnu-gcc" export CROSS_CXX="${CPU_ARCH_CMAKE}-linux-gnu-g++" - CROSS_BUILD_DEPS_DIR="$(realpath ../../)/.cache/tdlib-build-cross-${CPU_ARCH_DPKG}/" + CROSS_BUILD_DEPS_DIR="$(realpath ../../ || grealpath ../../)/.cache/tdlib-build-cross-${CPU_ARCH_DPKG}/" fi # ====== Print variables