build: use realpath instead of readlink

realpath works the same way in GNU and BSD systems
This commit is contained in:
Ivan Dyachkov 2022-09-07 21:31:58 +02:00
parent b485644615
commit bc850281f2
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ set -euo pipefail
DEBUG="${DEBUG:-0}"
[ "$DEBUG" -eq 1 ] && set -x
RUNNER_ROOT_DIR="$(cd "$(dirname "$(readlink "$0" || echo "$0")")"/..; pwd -P)"
RUNNER_ROOT_DIR="$(cd "$(dirname "$(realpath "$0" || echo "$0")")"/..; pwd -P)"
# shellcheck disable=SC1090,SC1091
. "$RUNNER_ROOT_DIR"/releases/emqx_vars