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