Преглед изворни кода

Merge pull request #8920 from emqx/build-use-realpath-in-emqx

build: use realpath instead of readlink
Ivan Dyachkov пре 3 година
родитељ
комит
659b65b328
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      bin/emqx

+ 1 - 1
bin/emqx

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