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 -e
|
||||||
|
|
||||||
# Set up directories (mirrors build.bat)
|
# Set up directories (mirrors build.bat)
|
||||||
# NOTE(yuval): Temporary fix that works only for macOS
|
# NOTE(yuval): Replaced readlink with realpath which works for both macOS and Linux
|
||||||
ME="$(greadlink -f "$0")"
|
ME="$(realpath "$0")"
|
||||||
LOCATION="$(dirname "$ME")"
|
LOCATION="$(dirname "$ME")"
|
||||||
SRC_ROOT="$(dirname "$LOCATION")"
|
SRC_ROOT="$(dirname "$LOCATION")"
|
||||||
PROJECT_ROOT="$(dirname "$SRC_ROOT")"
|
PROJECT_ROOT="$(dirname "$SRC_ROOT")"
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Store the real CWD
|
# Store the real CWD
|
||||||
ME="$(readlink -f "$0")"
|
ME="$(realpath "$0")"
|
||||||
LOCATION="$(dirname "$ME")"
|
LOCATION="$(dirname "$ME")"
|
||||||
CODE_HOME="$(dirname "$LOCATION")"
|
CODE_HOME="$(dirname "$LOCATION")"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue