From 65774dec4651752259f1a26aa5753e9ee9e8bf23 Mon Sep 17 00:00:00 2001 From: Yuval Dolev Date: Mon, 23 Dec 2019 20:40:51 +0200 Subject: [PATCH] Replaced readlink -f with realpath which works for both macOS and Linux. Might need to replace this with an implementation of readlink -f if we find that this doesn't work well enough for both macOS and Linux. --- bin/build.sh | 4 ++-- custom/bin/buildsuper_x64.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/build.sh b/bin/build.sh index 491067b0..90b1fa46 100755 --- a/bin/build.sh +++ b/bin/build.sh @@ -4,8 +4,8 @@ set -e # Set up directories (mirrors build.bat) -# NOTE(yuval): Temporary fix that works only for macOS -ME="$(greadlink -f "$0")" +# NOTE(yuval): Replaced readlink with realpath which works for both macOS and Linux +ME="$(realpath "$0")" LOCATION="$(dirname "$ME")" SRC_ROOT="$(dirname "$LOCATION")" PROJECT_ROOT="$(dirname "$SRC_ROOT")" diff --git a/custom/bin/buildsuper_x64.sh b/custom/bin/buildsuper_x64.sh index 2c83d6b1..e04e79cf 100755 --- a/custom/bin/buildsuper_x64.sh +++ b/custom/bin/buildsuper_x64.sh @@ -4,7 +4,7 @@ set -e # Store the real CWD -ME="$(readlink -f "$0")" +ME="$(realpath "$0")" LOCATION="$(dirname "$ME")" CODE_HOME="$(dirname "$LOCATION")"