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:
parent
67dfd06149
commit
65774dec46
|
@ -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")"
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
set -e
|
||||
|
||||
# Store the real CWD
|
||||
ME="$(readlink -f "$0")"
|
||||
ME="$(realpath "$0")"
|
||||
LOCATION="$(dirname "$ME")"
|
||||
CODE_HOME="$(dirname "$LOCATION")"
|
||||
|
||||
|
|
Loading…
Reference in New Issue