From cf06ceb9211f5020512c204ef463c0a582295a14 Mon Sep 17 00:00:00 2001 From: Zaiming Shi Date: Tue, 9 Nov 2021 21:37:06 +0100 Subject: [PATCH] chore(bin/emqx): fix a typo in bash function --- bin/emqx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/emqx b/bin/emqx index 5414ebcb2..0775b5f84 100755 --- a/bin/emqx +++ b/bin/emqx @@ -65,15 +65,15 @@ assert_node_alive() { # Echo to stderr on errors echoerr() { echo "$*" 1>&2; } -check_eralng_start() { +check_erlang_start() { "$BINDIR/$PROGNAME" -noshell -boot "$REL_DIR/start_clean" -s crypto start -s init stop } -if ! check_eralng_start >/dev/null 2>&1; then +if ! check_erlang_start >/dev/null 2>&1; then BUILT_ON="$(head -1 "${REL_DIR}/BUILT_ON")" ## failed to start, might be due to missing libs, try to be portable export LD_LIBRARY_PATH="$DYNLIBS_DIR:$LD_LIBRARY_PATH" - if ! check_eralng_start; then + if ! check_erlang_start; then ## it's hopeless echoerr "FATAL: Unable to start Erlang (with libcrypto)." echoerr "Please make sure it's running on the correct platform with all required dependencies."