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.

This commit is contained in:
Yuval Dolev 2019-12-23 20:40:51 +02:00
parent 67dfd06149
commit 65774dec46
2 changed files with 3 additions and 3 deletions

View File

@ -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")"

View File

@ -4,7 +4,7 @@
set -e
# Store the real CWD
ME="$(readlink -f "$0")"
ME="$(realpath "$0")"
LOCATION="$(dirname "$ME")"
CODE_HOME="$(dirname "$LOCATION")"